Skip to content

Commit

Permalink
Merge pull request #106 from dsp-testing/shati-patel/copy-internal-ch…
Browse files Browse the repository at this point in the history
…anges

Copy internal workflow changes
  • Loading branch information
shati-patel authored Oct 25, 2021
2 parents f766804 + 8e92c40 commit c2c1a24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
repoIds: ${{ fromJSON(github.event.inputs.repoIdChunks) }}
repoNwos: ${{ fromJSON(github.event.inputs.repoNwoChunks) }}

steps:
# Use ::add::mask for all tokens.
Expand All @@ -27,14 +27,14 @@ jobs:
xargs -I {} echo "::add-mask::{}"
# Extract the subset of the repositories input that we'll be analysing for this
# job, using the repoIds matrix input.
# job, using the repoNwos matrix input.
- name: Compute subset of repos
id: repos
shell: node {0}
run: |
const allRepos = ${{ github.event.inputs.repositories }};
const repoIds = new Set(${{ toJSON(matrix.repoIds) }});
const repositories = allRepos.filter(r => repoIds.has(r.id));
const repoNwos = new Set(${{ toJSON(matrix.repoNwos) }});
const repositories = allRepos.filter(r => repoNwos.has(r.nwo));
console.log(`::set-output name=repositories::${JSON.stringify(repositories)}`);
# This might not be the cleanest way to get hold of CodeQL but it's reliable
Expand Down

0 comments on commit c2c1a24

Please sign in to comment.