-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.77 KB
/
Copy pathcodeql.yml
File metadata and controls
45 lines (41 loc) · 1.77 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
# Code scanning for this repository. Advanced setup: the caller below is the
# only scanner, and CodeQL default setup is deliberately left `not-configured`
# because default setup cannot express a pinned reusable and cannot be reviewed
# in a diff. Attachment is atomic — enabling default setup later means disabling
# this workflow first, or the whole attachment fails.
#
# Verify rather than trust this comment:
# GET /repos/{owner}/{repo}/code-scanning/default-setup -> not-configured
# GET /repos/{owner}/{repo}/actions/workflows -> this file's state
name: codeql
on:
push:
branches: [main]
pull_request:
schedule:
# Weekly, so a new query release is applied to unchanged code. Without this
# a repository that stops changing also stops being scanned.
- cron: '0 5 * * 2'
permissions: {}
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
name: codeql
permissions:
actions: read
contents: read
security-events: write
uses: NDDev-OpenNetwork/ci-workflows/.github/workflows/public-codeql.yml@409817cf743e76383c84e30c72edf781d73b71a1 # 0.1.11
with:
# Public repository: `pull_request` runs untrusted fork code. Name the
# hosted runner explicitly — the reusable's default belongs to the pinned
# commit, not to this repository, so inheriting it would let a pin bump
# move fork pull requests onto private infrastructure with no diff here.
runner: ubuntu-latest
# Go is 100% of this repository.
languages: '["go","actions"]'
# Go is a compiled language; CodeQL needs a build to extract from. The
# reusable sets Go up from go.mod when the language is go.
autobuild: true