Skip to content

Commit 9b7fa3d

Browse files
authored
Add expect-error input to force PR check green on expected failure (#1177)
1 parent b0d61cf commit 9b7fa3d

11 files changed

Lines changed: 96 additions & 16 deletions

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
matrix:
2323
os: [ubuntu-latest, macos-latest]
24-
name: Failure Expected - Upload debug artifacts
24+
name: Upload debug artifacts after failure in analyze
2525
continue-on-error: true
2626
timeout-minutes: 45
2727
runs-on: ${{ matrix.os }}
@@ -45,6 +45,7 @@ jobs:
4545
- uses: ./../action/analyze
4646
id: analysis
4747
with:
48+
expect-error: true
4849
ram: 1
4950
download-and-check-artifacts:
5051
name: Download and check debug artifacts after failure in analyze

analyze/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ inputs:
6666
default: ${{ github.token }}
6767
matrix:
6868
default: ${{ toJson(matrix) }}
69+
expect-error:
70+
description: "[Internal] It is an error to use this input outside of integration testing of the codeql-action."
71+
required: false
72+
default: "false"
6973
outputs:
7074
db-locations:
7175
description: A map from language to absolute path for each database created by CodeQL.

lib/actions-util.js

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)