Skip to content

Commit fa018e4

Browse files
authored
Merge pull request #294 from smallstep/carl/remove-workflow-call-permissions
Remove job-level permissions from workflow_call-only workflows
2 parents 75b36d4 + 678b270 commit fa018e4

5 files changed

Lines changed: 6 additions & 16 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ jobs:
2727
codeql-analyze:
2828
name: CodeQL Analyze
2929
runs-on: ubuntu-latest
30-
permissions:
31-
actions: read
32-
contents: read
33-
security-events: write
3430
strategy:
3531
fail-fast: false
3632
matrix:

.github/workflows/frizbee.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ jobs:
66
frizbee:
77
name: Check action pinning
88
runs-on: ubuntu-latest
9-
permissions:
10-
contents: read
119
steps:
1210
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1311
with:

.github/workflows/goCI.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
permissions:
2-
contents: read
3-
41
on:
52
workflow_call:
63
inputs:
@@ -123,10 +120,6 @@ jobs:
123120

124121
codeql:
125122
if: inputs.run-codeql
126-
permissions:
127-
actions: read
128-
contents: read
129-
security-events: write
130123
uses: ./.github/workflows/codeql-analysis.yml
131124
with:
132125
goprivate: ${{ inputs.goprivate }}

.github/workflows/zizmor.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ jobs:
1111
zizmor:
1212
name: Scan GitHub workflows
1313
runs-on: ubuntu-latest
14-
permissions:
15-
contents: read
16-
security-events: write
1714
steps:
1815
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1916
with:

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rules:
2+
excessive-permissions:
3+
ignore:
4+
# workflow_call-only: the caller controls the permission ceiling,
5+
# so job-level permissions blocks are meaningless here.
6+
- goCI.yml

0 commit comments

Comments
 (0)