-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bugfix: fix has_tag lookup This caused false positives in the `ref-confusion` audit by using the wrong endpoint. The correct endpoint only returns the exact matching tag or 404, rather than a list of one or more partial matches. Signed-off-by: William Woodruff <william@yossarian.net> * tests: add repro for #518 This ended up being somewhat involved, since the tests expect to pass `--offline` unconditionally. Signed-off-by: William Woodruff <william@yossarian.net> * add test features Signed-off-by: William Woodruff <william@yossarian.net> * run online tests Signed-off-by: William Woodruff <william@yossarian.net> * release-notes: record changes Signed-off-by: William Woodruff <william@yossarian.net> * docs: explain online tests Signed-off-by: William Woodruff <william@yossarian.net> --------- Signed-off-by: William Woodruff <william@yossarian.net>
- Loading branch information
Showing
15 changed files
with
107 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
tests/snapshots/snapshot__conflicting_online_options-2.snap
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
tests/snapshots/snapshot__conflicting_online_options-3.snap
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: tests/snapshot.rs | ||
expression: "zizmor().workflow(workflow_under_test(\"ref-confusion/issue-518-repro.yml\")).offline(false).run()?" | ||
--- | ||
No findings to report. Good job! (1 suppressed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: tests/snapshot.rs | ||
expression: "zizmor().workflow(workflow_under_test(\"ref-confusion.yml\")).offline(false).run()?" | ||
--- | ||
warning[ref-confusion]: git ref for action with ambiguous ref type | ||
--> @@INPUT@@:11:9 | ||
| | ||
11 | - uses: woodruffw/gha-hazmat/ref-confusion@confusable | ||
| --------------------------------------------------- uses a ref that's provided by both the branch and tag namespaces | ||
| | ||
= note: audit confidence → High | ||
|
||
2 findings (1 suppressed): 0 unknown, 0 informational, 0 low, 1 medium, 0 high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: push | |
permissions: {} | ||
|
||
jobs: | ||
issue-557-repro: | ||
issue-447-repro: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: example | ||
on: [push] | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# NOT OK: `confusable` is both a tag and a branch | ||
- uses: woodruffw/gha-hazmat/ref-confusion@confusable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: ISSUE-518-REPRO | ||
on: [push] | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
issue-518-repro: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Task | ||
uses: arduino/setup-task@v2 |