Skip to content

Commit

Permalink
πŸ‘·β€β™€οΈ Use GITHUB_TOKEN for installing
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgibson committed Jan 18, 2024
1 parent 2767c2e commit a388259
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
- name: Install
run: npm install
# Skip post-install to avoid malicious scripts stealing PAT
run: npm install --ignore-script
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Post-install
run: npm rebuild && npm run prepare --if-present
- name: Test
run: npm test --forbid-only
- name: Release
Expand Down

0 comments on commit a388259

Please sign in to comment.