Permalink
Cannot retrieve contributors at this time
54 lines (49 sloc)
1.46 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/.github/actions/query-filter-test/action.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Query Filter Test | |
description: Runs a test of query filters using the check SARIF action | |
inputs: | |
sarif-file: | |
required: true | |
description: The SARIF file to check | |
queries-run: | |
required: true | |
description: | | |
Comma separated list of query ids that should be included in this SARIF file. | |
queries-not-run: | |
required: true | |
description: | | |
Comma separated list of query ids that should NOT be included in this SARIF file. | |
config-file: | |
required: true | |
description: | | |
The location of the codeql configuration file to use. | |
tools: | |
required: true | |
description: | | |
The url of codeql to use. | |
runs: | |
using: composite | |
steps: | |
- uses: ./../action/init | |
with: | |
languages: javascript | |
config-file: ${{ inputs.config-file }} | |
tools: ${{ inputs.tools }} | |
db-location: ${{ runner.temp }}/query-filter-test | |
env: | |
CODEQL_ACTION_TEST_MODE: "true" | |
- uses: ./../action/analyze | |
with: | |
output: ${{ runner.temp }}/results | |
upload-database: false | |
upload: never | |
env: | |
CODEQL_ACTION_TEST_MODE: "true" | |
- name: Check SARIF | |
uses: ./../action/.github/actions/check-sarif | |
with: | |
sarif-file: ${{ inputs.sarif-file }} | |
queries-run: ${{ inputs.queries-run}} | |
queries-not-run: ${{ inputs.queries-not-run}} | |
- name: Cleanup after test | |
shell: bash | |
run: rm -rf "$RUNNER_TEMP/results" "$RUNNER_TEMP/query-filter-test" |