Skip to content

Commit

Permalink
ci: add CodeQL job
Browse files Browse the repository at this point in the history
  • Loading branch information
tymees committed Nov 20, 2024
1 parent 3522198 commit bac1653
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


scan-agent:
grype-scan-agent:
needs: build-and-push-agent
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,7 +125,7 @@ jobs:
category: 'agent'
sarif_file: ${{ steps.scan.outputs.sarif }}

scan-server:
grype-scan-server:
needs: build-and-push-server
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -159,3 +158,27 @@ jobs:
with:
category: 'server'
sarif_file: ${{ steps.scan.outputs.sarif }}

CodeQL:
name: "CodeQL: Analyze Python code"
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
build-mode: none

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "CodeQL"

0 comments on commit bac1653

Please sign in to comment.