Skip to content

Commit

Permalink
specify contents permission directly
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jul 8, 2024
1 parent 5af1313 commit 2ea5c1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- '*.py'
- 'requirements/**'

permissions:
contents: write

jobs:
build:
runs-on: self-hosted
Expand Down Expand Up @@ -55,7 +58,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
run: gh workflow run release.yml -f release_tag=${{ github.ref }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ github.token }}

- uses: sarisia/actions-status-discord@v1
if: always() && startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
Expand Down

0 comments on commit 2ea5c1d

Please sign in to comment.