-
Notifications
You must be signed in to change notification settings - Fork 296
Update action pin tests to match updated action_pins.json data #19794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,9 +297,9 @@ func TestApplyActionPinToStep(t *testing.T) { | |
| func TestGetActionPinsSorting(t *testing.T) { | ||
| pins := getActionPins() | ||
|
|
||
| // Verify we got all the pins (32 as of March 2026) | ||
| if len(pins) != 32 { | ||
| t.Errorf("getActionPins() returned %d pins, expected 32", len(pins)) | ||
| // Verify we got all the pins (34 as of March 2026) | ||
| if len(pins) != 34 { | ||
| t.Errorf("getActionPins() returned %d pins, expected 34", len(pins)) | ||
|
Comment on lines
+300
to
+302
|
||
| } | ||
|
|
||
| // Verify they are sorted by version (descending) then by repository name (ascending) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallbackPinVeris pinned to a specific patch version, so this subtest will break on everyactions/setup-dotnetpin bump. Consider computing the expected fallback version from the hardcoded pins at runtime (e.g., by selecting the semver-compatible pin forrepo/requestedVerusinggetActionPins()/sortPinsByVersion) so the test continues to validate warning contents without needing manual updates.