ci: fix GITHUB_TOKEN permissions #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- '**' | |
jobs: | |
build: | |
uses: vtavernier/github-workflows/.github/workflows/build-go-docker.yml@v1 | |
permissions: | |
contents: read # It's the GH_TOKEN that writes back to the repository | |
issues: write # For semantic-release comments | |
packages: write # For pushing to docker | |
with: | |
submodules: recursive | |
secrets: | |
docker_password: ${{ secrets.GITHUB_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} |