Skip to content

Commit f421070

Browse files
authored
fix: add missing workflow permissions (#16)
Add a permission block to the workflows to limit the actions that can be taken.
1 parent 284c3ac commit f421070

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/labels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Sync repository labels
2+
23
on:
34
issues:
45
pull_request:
56
workflow_dispatch:
67

8+
permissions:
9+
issues: write
10+
711
jobs:
812
sync-labels:
913
runs-on: ubuntu-latest

.github/workflows/shellcheck.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
paths:
55
- "**/*.sh"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
shellcheck:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v6
1215
- name: Shellcheck
1316
run: |
1417
.github/workflows/scripts/run-shellcheck.sh

0 commit comments

Comments
 (0)