Skip to content

Commit e50af37

Browse files
committed
ci: Set GITHUB_TOKEN perms where recommended
This mostly just wants to make sure that read permissions are set the root and write permissions just on the job that needs it. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
1 parent ad6e2ed commit e50af37

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
- '.github/workflows/worker-images/**'
2323
- '.github/workflows/worker-images.yml'
2424
- '.github/workflows/dependabot.yml'
25+
- '.github/workflows/release.yml'
2526

2627
push:
2728
branches:

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111

1212
permissions:
1313
contents: read
14-
packages: write
1514

1615
jobs:
1716
tagList:
@@ -42,8 +41,12 @@ jobs:
4241
env:
4342
REF_NAME: ${{ github.ref_name }}
4443
shell: bash
44+
4545
build:
46+
permissions:
47+
packages: write
48+
4649
needs: tagList
4750
uses: ./.github/workflows/frontend-image.yml
4851
with:
49-
tag: ${{needs.tagList.outputs.tags}}
52+
tag: ${{needs.tagList.outputs.tags}}

.github/workflows/retag.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ on:
1515

1616
permissions:
1717
contents: read
18-
packages: write
1918

2019
jobs:
2120
retag:
21+
permissions:
22+
packages: write
2223
runs-on: ubuntu-latest
2324
steps:
2425
- name: Harden the runner (Audit all outbound calls)

.github/workflows/worker-images.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
5252
build-worker-images:
5353
permissions:
54-
contents: read
5554
packages: write
5655
needs: load-matrix
5756
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)