Skip to content

Commit 536a954

Browse files
authored
Merge pull request #2746 from step-security-bot/stepsecurity_remediation_1729119248
[StepSecurity] ci: Harden GitHub Actions
2 parents c8279f7 + 98bbc09 commit 536a954

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/codeql.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- cron: '33 19 * * 5'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
analyze:
1417
name: Analyze (${{ matrix.language }})

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'master'
1414
env:
1515
GO111MODULE: on
16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
artifacts-darwin:
1821
name: Artifacts Darwin

0 commit comments

Comments
 (0)