Skip to content

Commit 5362012

Browse files
[StepSecurity] ci: Harden GitHub Actions (#4551)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 861ec9c commit 5362012

9 files changed

+27
-0
lines changed

.github/workflows/check_amalgamation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: "Check amalgamation"
33
on:
44
pull_request:
55

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

.github/workflows/cifuzz.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CIFuzz
22
on: [pull_request]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
Fuzzing:
69
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1616
cancel-in-progress: true
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
CodeQL-Build:
2023

.github/workflows/comment_check_amalgamation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- completed
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
comment:
1013
if: ${{ github.event.workflow_run.conclusion == 'failure' }}

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
name: 'Dependency Review'
1010
on: [pull_request]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
dependency-review:
1417
runs-on: ubuntu-latest

.github/workflows/labeler.yml

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

7+
permissions:
8+
contents: read
9+
710
jobs:
811
label:
912
permissions:

.github/workflows/macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
# macos-11 is deprecated
1821
# macos-11:

.github/workflows/publish_documentation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ concurrency:
1515
group: documentation
1616
cancel-in-progress: false
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
publish_documentation:
2023
permissions:

.github/workflows/scorecards.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
push:
1515
branches: ["develop"]
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
analysis:
1922
name: Scorecard analysis

0 commit comments

Comments
 (0)