-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 2.2 KB
/
codeql-analysis.yml
File metadata and controls
66 lines (56 loc) · 2.2 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# ghas-management-template-version: 1.1
name: "CodeQL Advanced Security Scanning"
on:
# Initial proposal is daily runs to avoid overloading runners, teams can uncomment below to enable on push and PR events
# push:
# branches: [ "main", "master" ]
# pull_request:
# branches: [ "main", "master" ]
schedule:
- cron: '17 6 * * *' # Randomized per repository, daily runs somewhere between 22:00 and 06:00 UTC
workflow_dispatch:
env:
ARTIFACTORY_PASSWORD: ${{ secrets.EE_ARTIFACTORY_PASSWORD }}
ARTIFACTORY_URL: ${{ secrets.EE_ARTIFACTORY_URL }}
ARTIFACTORY_USERNAME: ${{ secrets.EE_ARTIFACTORY_USERNAME }}
VAULT_ROLE_ID: ${{ secrets.VAULT_ROLE_ID }}
VAULT_SECRET_ID: ${{ secrets.VAULT_SECRET_ID }}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
packages: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: go
build-mode: manual
# For languages that require build, teams must specify the container in which CodeQL will run; if language does not require build this section is removed by automation
container:
image: 'IMAGE_PLACEHOLDER' # Teams should adapt, should be in the format 'eu.gcr.io/halfpipe-io/build-image'
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize CodeQL
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Build app
if: matrix.build-mode == 'manual'
shell: bash
run: |
'BUILD_COMMAND_PLACEHOLDER'
# Teams must specify the build command for their application; if language does not require build this step is removed by automation
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
category: "/language:${{matrix.language}}"
threads: 2