Skip to content

Commit 8f1b8c1

Browse files
committed
Add go setup action to debug artifact checks
1 parent 9150ea9 commit 8f1b8c1

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/workflows/debug-artifacts-failure.yml

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
uses: ./.github/prepare-test
3636
with:
3737
version: latest
38+
- uses: actions/setup-go@v3
39+
with:
40+
go-version: ^1.13.1
3841
- uses: ./../action/init
3942
with:
4043
tools: ${{ steps.prepare-test.outputs.tools-url }}

.github/workflows/debug-artifacts.yml

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
uses: ./.github/prepare-test
5656
with:
5757
version: ${{ matrix.version }}
58+
- uses: actions/setup-go@v3
59+
with:
60+
go-version: ^1.13.1
5861
- uses: ./../action/init
5962
with:
6063
tools: ${{ steps.prepare-test.outputs.tools-url }}

lib/init-action.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ async function run() {
223223
"Go build tracing is now enabled by default, so the CODEQL_EXTRACTOR_GO_BUILD_TRACING environment variable which was previously used to manually enable Go build tracing is now deprecated. We recommend that you remove this environment variable from your workflow."
224224
);
225225
}
226-
// if (config.languages.includes(Language.go)) {
227-
// core.exportVariable("CODEQL_EXTRACTOR_GO_BUILD_TRACING", "on");
228-
// }
226+
if (config.languages.includes(Language.go)) {
227+
core.exportVariable("CODEQL_EXTRACTOR_GO_BUILD_TRACING", "on");
228+
}
229229

230230
if (
231231
config.languages.includes(Language.python) &&

0 commit comments

Comments
 (0)