Permalink
Cannot retrieve contributors at this time
56 lines (51 sloc)
1.91 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/workflows/query-filters.yml
View runs 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 filters tests | |
on: | |
push: | |
branches: | |
- main | |
- releases/v1 | |
- releases/v2 | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
workflow_dispatch: {} | |
jobs: | |
query-filters: | |
name: Query Filters Tests | |
timeout-minutes: 45 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Prepare test | |
id: prepare-test | |
uses: ./.github/prepare-test | |
with: | |
version: latest | |
- name: Check SARIF for default queries with Single include, Single exclude | |
uses: ./../action/.github/query-filter-test | |
with: | |
sarif-file: ${{ runner.temp }}/results/javascript.sarif | |
queries-run: js/zipslip | |
queries-not-run: js/path-injection | |
config-file: ./.github/codeql/codeql-config-query-filters1.yml | |
tools: ${{ steps.prepare-test.outputs.tools-url }} | |
- name: Check SARIF for query packs with Single include, Single exclude | |
uses: ./../action/.github/query-filter-test | |
with: | |
sarif-file: ${{ runner.temp }}/results/javascript.sarif | |
queries-run: js/zipslip,javascript/example/empty-or-one-block | |
queries-not-run: js/path-injection | |
config-file: ./.github/codeql/codeql-config-query-filters2.yml | |
tools: ${{ steps.prepare-test.outputs.tools-url }} | |
- name: Check SARIF for query packs and local queries with Single include, Single exclude | |
uses: ./../action/.github/query-filter-test | |
with: | |
sarif-file: ${{ runner.temp }}/results/javascript.sarif | |
queries-run: js/zipslip,javascript/example/empty-or-one-block,inrepo-javascript-querypack/show-ifs | |
queries-not-run: js/path-injection,complex-python-querypack/show-ifs,complex-python-querypack/foo/bar/show-ifs | |
config-file: ./.github/codeql/codeql-config-query-filters3.yml | |
tools: ${{ steps.prepare-test.outputs.tools-url }} |