Skip to content

Commit

Permalink
Replace PAT with GHA built-in secret in 'release' job (#1428)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sim <ivan.sim@kasten.io>

Co-authored-by: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com>
  • Loading branch information
ihcsim and pavannd1 committed May 4, 2022
1 parent fa9617d commit 3f1f8a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ jobs:
runs-on: ubuntu-20.04
needs: [test, build]
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
permissions:
packages: write
steps:
- uses: actions/download-artifact@v3
with:
name: src
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: tar -xvf ./src.tar.gz
- run: make release-snapshot
- run: ./build/push_images.sh

0 comments on commit 3f1f8a3

Please sign in to comment.