Skip to content

Commit 0ea34df

Browse files
author
Alvaro Muñoz
committed
Update action.yml
1 parent c3c6410 commit 0ea34df

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ inputs:
1414
suite:
1515
description: "CodeQL Suite to run"
1616
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
1723

1824
runs:
1925
using: 'composite'
2026
steps:
2127
- name: extpack contents
2228
shell: bash
29+
if: inputs.packs
2330
env:
2431
EXTPACK_PATH: /home/runner/.codeql/packages/local/workflow-models/0.0.1
2532
EXTPACK_NAME: local/workflow-models
@@ -28,7 +35,7 @@ runs:
2835
if [ -f $EXTPACK_PATH/models.yml ]; then cat $EXTPACK_PATH/models.yml; fi
2936
echo "##[endgroup]"
3037
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
3239
echo "##[endgroup]"
3340
3441
- name: Scan workflows
@@ -39,5 +46,6 @@ runs:
3946
INPUT_SOURCE-ROOT: ${{ inputs.source-root }}
4047
INPUT_SARIF-OUTPUT: ${{ inputs.sarif-output }}
4148
INPUT_SUITE: ${{ inputs.suite }}
49+
INPUT_PACKS: ${{ inputs.packs }}
4250
run: |
4351
node ${{ github.action_path }}/.github/action/dist/index.js

0 commit comments

Comments
 (0)