GeezerVison is showing github.com — Update CodeQL Path in PR checks · github/codeql-action@20b2d99
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/__export-file-baseline-information.yml +7-2Lines changed: 7 additions & 2 deletions Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/__multi-language-autodetect.yml +5-1Lines changed: 5 additions & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/__swift-autobuild.yml +5-1Lines changed: 5 additions & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/__swift-custom-build.yml +5-1Lines changed: 5 additions & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: pr-checks/checks/export-file-baseline-information.yml +7-2Lines changed: 7 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,6 +3,7 @@ description: "Tests that file baseline information is exported when the feature |
3 | 3 | versions: ["nightly-latest"] |
4 | 4 | steps: |
5 | 5 | - uses: ./../action/init |
| 6 | + id: init |
6 | 7 | with: |
7 | 8 | languages: javascript |
8 | 9 | tools: ${{ steps.prepare-test.outputs.tools-url }} |
@@ -11,12 +12,16 @@ steps: |
11 | 12 | CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true |
12 | 13 | - name: Get Swift version |
13 | 14 | id: get_swift_version |
| 15 | + # We don't support Swift on Windows |
| 16 | + if: runner.os != 'Windows' |
14 | 17 | shell: bash |
| 18 | + env: |
| 19 | + CODEQL_PATH: ${{steps.init.outputs.codeql-path}} |
15 | 20 | run: | |
16 | | - codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }' |
| 21 | + SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]' |
| 22 | + $SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }' |
17 | 23 | echo "version=$VERSION" | tee -a $GITHUB_OUTPUT |
18 | 24 | - uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723 |
19 | | - # We don't support Swift on Windows |
20 | 25 | if: runner.os != 'Windows' |
21 | 26 | with: |
22 | 27 | swift-version: "${{steps.get_swift_version.outputs.version}}" |
|
Collapse file
Copy file name to clipboardExpand all lines: pr-checks/checks/multi-language-autodetect.yml +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
5 | 5 | CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA. |
6 | 6 | steps: |
7 | 7 | - uses: ./../action/init |
| 8 | + id: init |
8 | 9 | with: |
9 | 10 | db-location: "${{ runner.temp }}/customDbLocation" |
10 | 11 | tools: ${{ steps.prepare-test.outputs.tools-url }} |
11 | 12 |
|
12 | 13 | - name: Get Swift version |
13 | 14 | id: get_swift_version |
14 | 15 | shell: bash |
| 16 | + env: |
| 17 | + CODEQL_PATH: ${{steps.init.outputs.codeql-path}} |
15 | 18 | run: | |
16 | | - codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }' |
| 19 | + SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]' |
| 20 | + $SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }' |
17 | 21 | echo "version=$VERSION" | tee -a $GITHUB_OUTPUT |
18 | 22 | |
19 | 23 | - uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723 |
|
Collapse file
Copy file name to clipboardExpand all lines: pr-checks/checks/swift-autobuild.yml +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" |
8 | 8 | steps: |
9 | 9 | - uses: ./../action/init |
| 10 | + id: init |
10 | 11 | with: |
11 | 12 | languages: swift |
12 | 13 | tools: ${{ steps.prepare-test.outputs.tools-url }} |
13 | 14 | - name: Get Swift version |
14 | 15 | id: get_swift_version |
15 | 16 | shell: bash |
| 17 | + env: |
| 18 | + CODEQL_PATH: ${{steps.init.outputs.codeql-path}} |
16 | 19 | run: | |
17 | | - codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }' |
| 20 | + SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]' |
| 21 | + $SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }' |
18 | 22 | echo "version=$VERSION" | tee -a $GITHUB_OUTPUT |
19 | 23 | - uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723 |
20 | 24 | with: |
|
Collapse file
Copy file name to clipboardExpand all lines: pr-checks/checks/swift-custom-build.yml +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" |
8 | 8 | steps: |
9 | 9 | - uses: ./../action/init |
| 10 | + id: init |
10 | 11 | with: |
11 | 12 | languages: swift |
12 | 13 | tools: ${{ steps.prepare-test.outputs.tools-url }} |
13 | 14 | - name: Get Swift version |
14 | 15 | id: get_swift_version |
15 | 16 | shell: bash |
| 17 | + env: |
| 18 | + CODEQL_PATH: ${{steps.init.outputs.codeql-path}} |
16 | 19 | run: | |
17 | | - codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }' |
| 20 | + SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]' |
| 21 | + $SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }' |
18 | 22 | echo "version=$VERSION" | tee -a $GITHUB_OUTPUT |
19 | 23 | - uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723 |
20 | 24 | with: |
|