Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: enhance codeql action to generate pdf report #121

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/common-codeql.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CodeQL
on:
workflow_call:
inputs:
export-report:
default: false
required: false
type: boolean

jobs:
codeql-scan:
Expand All @@ -17,3 +22,17 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Generate CodeQL Security Report
if: ${{ inputs.export-report }}
uses: rsdmike/[email protected]
with:
template: report
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload PDF report as an artifact
if: ${{ inputs.export-report }}
uses: actions/upload-artifact@v3
with:
name: codeql-report
path: report.pdf
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ jobs:
uses: "./.github/workflows/common-trivy.yaml"
with:
export-csv: true

codeql:
uses: "./.github/workflows/common-codeql.yaml"
with:
export-report: true
Loading