Skip to content

Commit 4c5c1f4

Browse files
Ryan Warestep-security-bot
andauthored
[StepSecurity] ci: Harden GitHub Actions (#313)
Signed-off-by: StepSecurity Bot <[email protected]> Co-authored-by: StepSecurity Bot <[email protected]>
1 parent 34d3319 commit 4c5c1f4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/basic_func_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
workflow_dispatch:
1515

1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
# This workflow contains a single job called "build"
1922
build:

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
schedule:
2020
- cron: '41 23 * * 3'
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
analyze:
2427
name: Analyze (${{ matrix.language }})

0 commit comments

Comments
 (0)