Skip to content

Commit fc90674

Browse files
[StepSecurity] ci: Harden GitHub Actions (#153)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 10f5dcd commit fc90674

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
paths:
88
- '**/gradle/wrapper/**'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
validation:
1215
runs-on: ubuntu-latest

.github/workflows/prepare-release-branch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Prepare release branch
22
on:
33
workflow_dispatch:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
prereqs:
710
runs-on: ubuntu-latest
@@ -21,6 +24,8 @@ jobs:
2124
fi
2225
2326
create-pull-request-against-release-branch:
27+
permissions:
28+
contents: write # for Git to git push
2429
runs-on: ubuntu-latest
2530
needs:
2631
- prereqs
@@ -74,6 +79,8 @@ jobs:
7479
--base $RELEASE_BRANCH_NAME
7580
7681
create-pull-request-against-main:
82+
permissions:
83+
contents: write # for Git to git push
7784
runs-on: ubuntu-latest
7885
needs:
7986
- prereqs

.github/workflows/reusable-markdown-link-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Reusable - Markdown link check
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
markdown-link-check:
811
runs-on: ubuntu-latest

.github/workflows/reusable-misspell-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Reusable - Misspell check
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
misspell-check:
811
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)