Skip to content

Commit

Permalink
explicitly set permissions for github workflows (#433)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Leung <kleung@chainguard.dev>
  • Loading branch information
k4leung4 authored Feb 23, 2022
1 parent a680618 commit 9864962
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
schedule:
- cron: '45 10 * * 1'

permissions:
contents: read
security-events: write

jobs:
analyze:
name: Analyze
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
pull_request:
branches: [ main, development ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-20.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/verify-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ name: Verify-K8s

on: [push, pull_request]

permissions:
contents: read

jobs:
verify-k8s-manifests:
name: k8s manifest check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ name: Verify

on: [push, pull_request]

permissions:
contents: read

jobs:
license-check:
name: license boilerplate check
Expand Down

0 comments on commit 9864962

Please sign in to comment.