Skip to content

Commit

Permalink
Update codeql-analysis.yml
Browse files Browse the repository at this point in the history
- Restricts permissions of CodeQL workflow
- Runs CodeQL scanning on every build of the "main" branch

{patch}

Signed-off-by: Esta Nagy <[email protected]>
  • Loading branch information
nagyesta authored Jul 28, 2024
1 parent fb97ce8 commit 51628d3
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@ name: "CodeQL"
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- '**/README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'pull_request_template.md'
- 'SECURITY.md'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
- '.github/assets/**'
- '.github/workflows/**'
- '!.github/workflows/codeql-analysis.yml'
- '.github/pr-labeler.yml'
- 'renovate.json'
- '.whitesource'
- 'lowkey-vault-docker/src/docker/Dockerfile'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
Expand All @@ -53,9 +37,6 @@ on:
- 'lowkey-vault-docker/src/docker/Dockerfile'

permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read
Expand All @@ -64,6 +45,10 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

steps:
- name: Checkout repository
Expand Down

0 comments on commit 51628d3

Please sign in to comment.