Skip to content

Commit 02391f8

Browse files
committed
👷‍♀️ Remove PERSONAL_ACCESS_TOKEN usage
1 parent dc0ea8e commit 02391f8

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/test.yml .github/workflows/ci.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
1-
name: Test
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
7-
- lint
87
pull_request:
98
branches:
109
- main
1110

1211
jobs:
1312
build:
14-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-latest
1514
timeout-minutes: 10
1615
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1918
with:
20-
node-version: '18.x'
19+
node-version: '20.x'
2120
registry-url: 'https://npm.pkg.github.com'
2221
- name: Install
2322
# Skip post-install to avoid malicious scripts stealing PAT
2423
run: npm install --ignore-script
2524
env:
26-
# GITHUB_TOKEN can't access packages hosted in private repos,
27-
# even within the same organisation
28-
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
25+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2926
- name: Post-install
3027
run: npm rebuild && npm run prepare --if-present
3128
- name: Build

0 commit comments

Comments
 (0)