Skip to content

Commit

Permalink
chore: Set permissions for GitHub actions (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Apr 24, 2022
2 parents 90f3f99 + 7ba7cb5 commit 6077f20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ on:
schedule:
- cron: '0 16 * * 3'

permissions:
contents: read

jobs:
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: "Validate Gradle Wrapper"
on: [push, pull_request]

permissions:
contents: read

jobs:
validation:
name: "Validation"
Expand Down

0 comments on commit 6077f20

Please sign in to comment.