-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (36 loc) · 1.15 KB
/
Copy pathcommon-codeql.yaml
File metadata and controls
42 lines (36 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CodeQL
on:
workflow_call:
inputs:
export-report:
default: false
required: false
type: boolean
permissions:
contents: read
jobs:
codeql-scan:
runs-on: ubuntu-22.04
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@3d8036cf7fe7433e4a725cf513a6ea56c7fd0f14 # codeql-bundle-v2.25.0
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@3d8036cf7fe7433e4a725cf513a6ea56c7fd0f14 # codeql-bundle-v2.25.0
- name: Generate CodeQL Security Report
if: ${{ inputs.export-report }}
uses: rsdmike/github-security-report-action@a3d8cc051bc89f1b622d396adab901aa73857a29 # v4.1.0
with:
template: report
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload PDF report as an artifact
if: ${{ inputs.export-report }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: codeql-report
path: report.pdf