Skip to content

Commit

Permalink
Add PR check for specifying configuration using the config input
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Feb 15, 2024
1 parent dc983b3 commit d88d538
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 0 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/__config-input.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions pr-checks/checks/config-input.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Config input"
description: "Tests specifying configuration using the config input"
operatingSystems: ["ubuntu"]
versions: ["latest"]
steps:
- name: Copy queries into workspace
run: |
cp -a ../action/queries .
- uses: ./../action/init
with:
tools: ${{ steps.prepare-test.outputs.tools-url }}
languages: javascript
build-mode: none
config: |
disable-default-queries: true
queries:
- name: Run custom query
uses: ./queries/default-setup-environment-variables.ql
paths-ignore:
- tests
- lib
- uses: ./../action/analyze
with:
output: ${{ runner.temp }}/results

- name: Check SARIF
uses: ./../action/.github/actions/check-sarif
with:
sarif-file: ${{ runner.temp }}/results/javascript.sarif
queries-run: javascript/codeql-action/default-setup-env-vars
queries-not-run: javascript/codeql-action/default-setup-context-properties

0 comments on commit d88d538

Please sign in to comment.