Skip to content

Commit 9bb2fdf

Browse files
authored
Merge pull request #3143 from AlchemyCMS/backport/7.1-stable/pr-3139
[7.1-stable] CI: Set workflow permissions
2 parents 8b65b38 + 9bc8985 commit 9bb2fdf

File tree

6 files changed

+27
-1
lines changed

6 files changed

+27
-1
lines changed

.github/workflows/backport.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- closed
77
- labeled
88

9+
permissions:
10+
pull-requests: write
11+
912
jobs:
1013
backport:
1114
name: Backport

.github/workflows/brakeman-analysis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
name: Brakeman Scan
55

6+
concurrency:
7+
group: brakeman-${{ github.ref_name }}
8+
cancel-in-progress: ${{ github.ref_name != 'main' }}
9+
10+
permissions:
11+
contents: read
12+
security-events: write
13+
614
on:
715
push:
816
branches:

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99

1010
jobs:
1111
check_yarn_lock:
12+
permissions:
13+
contents: read
1214
runs-on: ubuntu-22.04
1315
name: Check yarn.lock
1416
steps:

.github/workflows/lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Lint
22

33
on: [pull_request]
44

5+
concurrency:
6+
group: lint-${{ github.ref_name }}
7+
cancel-in-progress: ${{ github.ref_name != 'main' }}
8+
9+
permissions:
10+
contents: read
11+
512
jobs:
613
Standard:
714
runs-on: ubuntu-22.04

.github/workflows/stale.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
pull-requests: write
9+
issues: write
10+
711
jobs:
812
stale:
913
runs-on: ubuntu-22.04
10-
1114
steps:
1215
- uses: actions/stale@v5
1316
with:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- 7.1-stable
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
RSpec:
1114
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)