Skip to content

Commit 1da97f4

Browse files
authored
Merge pull request #765 from Adyen/set-workflow-permissions
Vulnerability fix: set workflow permissions
2 parents e092693 + 5681111 commit 1da97f4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/label_new_issues.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
issues:
44
types: [opened]
55

6+
permissions:
7+
issues: write
8+
69
jobs:
710
add-label:
811
runs-on: ubuntu-latest

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- develop
1212
workflow_dispatch: {}
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
php-test:
1619
name: PHP Test

.github/workflows/stale.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
schedule:
44
- cron: '30 8 * * *'
55

6+
permissions:
7+
issues: write
8+
69
jobs:
710
stale:
811
runs-on: ubuntu-latest
@@ -24,4 +27,4 @@ jobs:
2427
days-before-pr-close: 30
2528
exempt-pr-labels: 'do not stale'
2629
only-pr-labels: awaiting-changes,blocked,work-in-progress,awaiting-upstream
27-
remove-pr-stale-when-updated: true
30+
remove-pr-stale-when-updated: true

0 commit comments

Comments
 (0)