Skip to content

Commit 177c5bd

Browse files
committed
ci: install GitHubSecurityLab/actions-permissions and adjust permissions on non-release workflows
1 parent 183dc4f commit 177c5bd

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

.github/workflows/conformance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Conformance Checks
22

3+
permissions: {}
4+
35
on:
46
push:
57
branches: [main]

.github/workflows/lock.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
name: 'Lock threads'
22

3+
permissions: {}
4+
35
on:
46
schedule:
57
- cron: '55 11 * * 1'
68

79
jobs:
810
lock:
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
discussions: write
915
if: ${{ github.repository == 'panva/node-oidc-provider' }}
1016
continue-on-error: true
1117
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
permissions:
1212
id-token: write
1313
steps:
14+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1415
- name: Checkout
1516
uses: actions/checkout@v4
1617
with:
@@ -32,6 +33,7 @@ jobs:
3233
permissions:
3334
contents: write
3435
steps:
36+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3537
- name: Checkout
3638
uses: actions/checkout@v4
3739
with:
@@ -44,6 +46,7 @@ jobs:
4446
- npm
4547
runs-on: ubuntu-latest
4648
steps:
49+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
4750
- name: Checkout
4851
uses: actions/checkout@v4
4952
with:

.github/workflows/retry.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Retry
22

3+
permissions: {}
4+
35
on:
46
workflow_run:
57
workflows:
@@ -9,6 +11,8 @@ on:
911

1012
jobs:
1113
retry:
14+
permissions:
15+
actions: write
1216
runs-on: ubuntu-latest
1317
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }}
1418
steps:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Test
22

3+
permissions: {}
4+
35
on:
46
push:
57
branches: [main]

0 commit comments

Comments
 (0)