-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1009 Bytes
/
Copy pathfixed-baseline-codeql.yml
File metadata and controls
41 lines (35 loc) · 1009 Bytes
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
name: Fixed Baseline CodeQL (Default Configuration)
on:
workflow_dispatch:
inputs:
run_baseline:
description: 'Run baseline CodeQL scan'
required: true
default: 'true'
type: boolean
jobs:
baseline-analysis:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
id-token: write
strategy:
fail-fast: false
matrix:
language: [go, javascript]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Initialize CodeQL (Default Configuration)
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: autobuild # Fixed: Go requires autobuild or manual
- name: Perform CodeQL Analysis (Baseline)
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}/baseline-default"