From 15e1148251790718bdbecbe1ec862e53ca347adf Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Fri, 30 Sep 2022 10:54:26 +0200 Subject: [PATCH] Use github token to publish release Signed-off-by: Julien Pivotto --- .github/actions/publish_release/action.yml | 5 +++++ .github/workflows/ci.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/actions/publish_release/action.yml b/.github/actions/publish_release/action.yml index e0118022a..1b6a0e302 100644 --- a/.github/actions/publish_release/action.yml +++ b/.github/actions/publish_release/action.yml @@ -20,6 +20,9 @@ inputs: quay_io_password: type: string description: Quay.io password + github_token: + type: string + description: Github Token runs: using: composite steps: @@ -33,6 +36,8 @@ runs: shell: bash - run: ~/go/bin/promu release .tarballs shell: bash + env: + GITHUB_TOKEN: ${{ inputs.github_token }} - uses: ./.github/actions/publish_release_images if: inputs.docker_hub_organization != '' && inputs.docker_hub_login != '' with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59355e3ef..ea456adfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,6 +175,7 @@ jobs: docker_hub_password: ${{ secrets.docker_hub_password }} quay_io_login: ${{ secrets.quay_io_login }} quay_io_password: ${{ secrets.quay_io_password }} + github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }} publish_ui_release: name: Publish UI on npm Registry runs-on: ubuntu-latest