Skip to content

Commit

Permalink
chore: use github.token for CI rather than PATs (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr authored Jan 3, 2025
1 parent d07c8ca commit d54a884
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [ test, lint ]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
pages: write
issues: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -90,7 +96,7 @@ jobs:
- name: "Create Bundle"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: |
# The semantic-release command errors if this folder does not exist
mkdir ./bundle
Expand All @@ -103,5 +109,5 @@ jobs:
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: npx semantic-release
8 changes: 6 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
matrix:
dependency: ['swipl', 'emsdk', 'zlib', 'pcre2']

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -18,7 +22,7 @@ jobs:
uses: actions/setup-node@v4
with:
# Consider using lts
node-version: 20.x
node-version: 22.x
- name: Commit latest release version
run: |
npm ci
Expand Down Expand Up @@ -63,4 +67,4 @@ jobs:
fi
fi
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ github.token }}

0 comments on commit d54a884

Please sign in to comment.