Skip to content

Commit

Permalink
Merge pull request #124 from marquiz/devel/github-permissions
Browse files Browse the repository at this point in the history
github: add top level default permissions to workflows
  • Loading branch information
askervin authored Jan 3, 2024
2 parents 1eca95d + e494412 commit 83cc27a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/common-codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: false
type: boolean

permissions:
contents: read
security-events: write

jobs:
codeql-scan:
runs-on: ubuntu-22.04
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/common-trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
default: false
required: false
type: boolean

permissions:
contents: read
security-events: write

jobs:
trivy-scan-licenses:
runs-on: ubuntu-22.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
tags: [ 'v*' ]

permissions:
contents: read
security-events: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ on:
pull_request:
paths-ignore:
- "**.md"

permissions:
contents: read
security-events: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-and-lint:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 83cc27a

Please sign in to comment.