Skip to content

Commit d88d538

Browse files
committed
Add PR check for specifying configuration using the config input
1 parent dc983b3 commit d88d538

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed

.github/workflows/__config-input.yml

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/config-input.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Config input"
2+
description: "Tests specifying configuration using the config input"
3+
operatingSystems: ["ubuntu"]
4+
versions: ["latest"]
5+
steps:
6+
- name: Copy queries into workspace
7+
run: |
8+
cp -a ../action/queries .
9+
10+
- uses: ./../action/init
11+
with:
12+
tools: ${{ steps.prepare-test.outputs.tools-url }}
13+
languages: javascript
14+
build-mode: none
15+
config: |
16+
disable-default-queries: true
17+
queries:
18+
- name: Run custom query
19+
uses: ./queries/default-setup-environment-variables.ql
20+
paths-ignore:
21+
- tests
22+
- lib
23+
24+
- uses: ./../action/analyze
25+
with:
26+
output: ${{ runner.temp }}/results
27+
28+
- name: Check SARIF
29+
uses: ./../action/.github/actions/check-sarif
30+
with:
31+
sarif-file: ${{ runner.temp }}/results/javascript.sarif
32+
queries-run: javascript/codeql-action/default-setup-env-vars
33+
queries-not-run: javascript/codeql-action/default-setup-context-properties

0 commit comments

Comments
 (0)