mirror of
https://github.com/docker/build-push-action
synced 2026-09-15 06:37:26 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17e42a47e7 |
@@ -35,12 +35,12 @@ jobs:
|
|||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
-
|
-
|
||||||
name: Initialize CodeQL
|
name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
|
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
|
||||||
with:
|
with:
|
||||||
languages: javascript-typescript
|
languages: javascript-typescript
|
||||||
build-mode: none
|
build-mode: none
|
||||||
-
|
-
|
||||||
name: Perform CodeQL Analysis
|
name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
|
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
|
||||||
with:
|
with:
|
||||||
category: "/language:javascript-typescript"
|
category: "/language:javascript-typescript"
|
||||||
|
|||||||
+11
-11
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+4
-4
@@ -110,11 +110,11 @@ actionsToolkit.run(
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.exitCode != 0) {
|
if (res.exitCode != 0) {
|
||||||
if (inputs.call && inputs.call === 'check' && res.stdout.length > 0) {
|
if (inputs.call && inputs.call === 'check' && res.stdout.length > 0) {
|
||||||
// Check warnings are printed to stdout: https://github.com/docker/buildx/pull/2647
|
// checks warnings are printed to stdout: https://github.com/docker/buildx/pull/2647
|
||||||
// Use the first line as the warning summary.
|
// take the first line with the message summaryzing the warnings
|
||||||
err = new Error(res.stdout.split('\n')[0]?.trim());
|
err = new Error(res.stdout.split('\n')[0]?.trim());
|
||||||
} else {
|
} else if (res.stderr.length > 0) {
|
||||||
err = new Error(`buildx failed with: ${Buildx.getErrorMessage(res.stderr)}`);
|
err = new Error(`buildx failed with: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user