Skip to content

Commit 373eeba

Browse files
authored
Merge pull request #71 from CycloneDX/chore/gh-workflow-permissions
chore: GH workflow permissions
2 parents 7790ab3 + 4a82d7f commit 373eeba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
schedule:
1111
- cron: '0 9 * * 5'
1212

13+
# see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
14+
permissions:
15+
contents: read
16+
security-events: write
17+
1318
jobs:
1419
analyze:
1520
name: Analyze

.github/workflows/maven.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Maven CI
22

33
on: [push, pull_request]
44

5+
# see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
6+
permissions: {}
7+
58
jobs:
69
build:
710

0 commit comments

Comments
 (0)