Skip to content

Commit

Permalink
πŸ‘·β€β™€οΈ Use GITHUB_TOKEN for install
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgibson committed Jan 18, 2024
1 parent b0df39e commit 4e7cf41
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 @@ -34,7 +34,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: Lint
run: npm run lint
- name: Test
Expand Down

0 comments on commit 4e7cf41

Please sign in to comment.