Skip to content

Commit

Permalink
ci/permissions: Restrict permissions for remaining workflows (#31603)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Jan 3, 2024
1 parent 0684847 commit f812033
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/codeql-daily.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
name: CodeQL/daily

permissions:
contents: read

on:
schedule:
- cron: '0 12 * * 4'
Expand All @@ -6,11 +11,13 @@ concurrency:
group: ${{ github.head_ref-github.workflow || github.run_id }}
cancel-in-progress: true


jobs:
CodeQL-Build:

permissions:
security-events: write # for github/codeql-action/analyze to upload SARIF results
pull-requests: read
strategy:
fail-fast: false

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql-push.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CodeQL

permissions:
contents: read

on:
push:
paths:
Expand All @@ -12,11 +15,13 @@ concurrency:
group: ${{ github.head_ref-github.workflow || github.run_id }}
cancel-in-progress: true


jobs:
CodeQL-Build:

permissions:
security-events: write # for github/codeql-action/analyze to upload SARIF results
pull-requests: read
strategy:
fail-fast: false

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/envoy-sync.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: 'Sync downstream'

permissions:
contents: read

on:
push:
branches:
Expand Down

0 comments on commit f812033

Please sign in to comment.