Skip to content

Commit e6707ba

Browse files
committed
fix: build and test workflow missing permissions
1 parent 35dcf4c commit e6707ba

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,21 @@ on:
66
- main
77
- 'releases/*'
88

9+
concurrency:
10+
group: build-and-test-${{ github.ref_name }}
11+
cancel-in-progress: true
12+
13+
permissions: {}
14+
915
jobs:
10-
build-action: # make sure build/ci work properly
11-
runs-on: ubuntu-latest
16+
build-action:
17+
runs-on: ubuntu-22.04
18+
timeout-minutes: 10
19+
20+
permissions:
21+
contents: read
22+
packages: read
23+
1224
steps:
1325
- name: Checkout repo
1426
uses: actions/checkout@v4
@@ -34,7 +46,13 @@ jobs:
3446
pnpm run test
3547
3648
test-action: # make sure the action works on a clean machine without building
37-
runs-on: ubuntu-latest
49+
runs-on: ubuntu-22.04
50+
timeout-minutes: 10
51+
52+
permissions:
53+
contents: read
54+
packages: read
55+
3856
steps:
3957
- name: Checkout repo
4058
uses: actions/checkout@v4

0 commit comments

Comments
 (0)