Skip to content

Commit 06b8577

Browse files
authored
Set workflow permissions explicitly (#151)
Fix actions/missing-workflow-permissions in Code Scanning alerts --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/terraform-linters/tflint-ruleset-opa?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 49da038 commit 06b8577

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
schedule:
1111
- cron: "0 0 * * *"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
test:
1518
name: ${{ matrix.os }}

.github/workflows/e2e.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
schedule:
1111
- cron: "0 0 * * *"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
e2e:
1518
name: ${{ matrix.os }} (${{ matrix.version }})

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
check:
1316
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)