-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.39 KB
/
Copy pathcodeql.yaml
File metadata and controls
62 lines (54 loc) · 1.39 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
name: CodeQL
#
# Scans code with CodeQL.
#
# - https://codeql.github.com
# - https://github.com/github/codeql-action
#
on:
workflow_dispatch:
schedule:
# At 04:15 on Monday.
- cron: 15 4 * * 1
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
skip:
name: Skip
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
outputs:
skip: ${{ steps.skip.outputs.should_skip }}
steps:
- id: skip
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1
with:
concurrent_skipping: always
skip_after_successful_duplicate: true
codeql:
needs: skip
if: needs.skip.outputs.skip != 'true'
name: CodeQL
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [actions, python]
permissions:
actions: read
contents: read
packages: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Initialize CodeQL
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0