File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,19 @@ inputs:
14
14
suite :
15
15
description : " CodeQL Suite to run"
16
16
default : " actions-code-scanning"
17
+ packs :
18
+ description : >-
19
+ Comma-separated list of packs to run. Reference a pack in the format `scope/name[@version]`. If `version` is not
20
+ specified, then the latest version of the pack is used. By default, this overrides the same setting in a
21
+ configuration file; prefix with "+" to use both sets of packs.
22
+ required : false
17
23
18
24
runs :
19
25
using : ' composite'
20
26
steps :
21
27
- name : extpack contents
22
28
shell : bash
29
+ if : inputs.packs
23
30
env :
24
31
EXTPACK_PATH : /home/runner/.codeql/packages/local/workflow-models/0.0.1
25
32
EXTPACK_NAME : local/workflow-models
28
35
if [ -f $EXTPACK_PATH/models.yml ]; then cat $EXTPACK_PATH/models.yml; fi
29
36
echo "##[endgroup]"
30
37
echo "##[group] QLPack"
31
- if [ -f $EXTPACK_PATH/codeql-pack.yml ]; then cat $EXTPACK_PATH/codeql-pack.yml; echo "USE_WORKFLOW_MODELS=true" >> $GITHUB_ENV; fi
38
+ if [ -f $EXTPACK_PATH/codeql-pack.yml ]; then cat $EXTPACK_PATH/codeql-pack.yml; fi
32
39
echo "##[endgroup]"
33
40
34
41
- name : Scan workflows
39
46
INPUT_SOURCE-ROOT : ${{ inputs.source-root }}
40
47
INPUT_SARIF-OUTPUT : ${{ inputs.sarif-output }}
41
48
INPUT_SUITE : ${{ inputs.suite }}
49
+ INPUT_PACKS : ${{ inputs.packs }}
42
50
run : |
43
51
node ${{ github.action_path }}/.github/action/dist/index.js
You can’t perform that action at this time.
0 commit comments