Skip to content

Commit

Permalink
chore: revert to using secrets.GH_TOKEN in update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr authored Jan 3, 2025
1 parent d54a884 commit 0935e77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ jobs:
matrix:
dependency: ['swipl', 'emsdk', 'zlib', 'pcre2']

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -67,4 +63,8 @@ jobs:
fi
fi
env:
GH_TOKEN: ${{ github.token }}
# You may be tempted to make this github.token, this won't work
# because GH Actions does not trigger workflows on github.token
# in order to avoid recursive workflows.
# See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 0935e77

Please sign in to comment.