Replace PAT with GHA built-in secret in 'release' job
@@ -75,6 +75,8 @@ 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:
@@ -82,8 +84,8 @@ jobs:
- 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
