Skip to content

Commit

Permalink
Merge pull request #121 from marquiz/devel/codeql-report
Browse files Browse the repository at this point in the history
github: enhance codeql action to generate pdf report
  • Loading branch information
marquiz authored Dec 22, 2023
2 parents 48c12de + 74bb42e commit e81f2d3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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

0 comments on commit e81f2d3

Please sign in to comment.