Skip to content

Commit 6796232

Browse files
authored
Merge pull request #112 from advanced-security/alert-autofix-workflow-permissions
Potential fix for alerts: Workflow does not contain permissions
2 parents 6a1035d + 7cfdb92 commit 6796232

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/check-dist.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# For our project, we generate this file through a build process from other source files.
55
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
66
name: Check dist/
7+
permissions:
8+
contents: read
79

810
on:
911
push:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "Test"
2+
permissions:
3+
contents: read
24
on:
35
pull_request:
46
workflow_dispatch:

0 commit comments

Comments
 (0)