Skip to content

Commit 6077f20

Browse files
authored
chore: Set permissions for GitHub actions (#1182)
2 parents 90f3f99 + 7ba7cb5 commit 6077f20

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/codeql-analysis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ on:
1414
schedule:
1515
- cron: '0 16 * * 3'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
analyze:
22+
permissions:
23+
actions: read # for github/codeql-action/init to get workflow details
24+
contents: read # for actions/checkout to fetch code
25+
security-events: write # for github/codeql-action/autobuild to send a status report
1926
name: Analyze
2027
runs-on: ubuntu-latest
2128

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

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "Validate Gradle Wrapper"
22
on: [push, pull_request]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
validation:
69
name: "Validation"

0 commit comments

Comments
 (0)