Skip to content

feat: emit a warning when action is pinned to head#460

Merged
sethvargo merged 1 commit intomasterfrom
sethvargo/warn
Dec 29, 2021
Merged

feat: emit a warning when action is pinned to head#460
sethvargo merged 1 commit intomasterfrom
sethvargo/warn

Conversation

@sethvargo
Copy link
Copy Markdown
Contributor

@sethvargo sethvargo commented Dec 26, 2021

GITHUB_ACTION_REF contains everything after the @ in a reference. This means we can detect if the pinned ref is @master or @main and issue a warning.

I don't think this should ever be an error, but I think we need something more proactive than the readme, especially since prior versions of this action recommended pinning to HEAD.

@sethvargo sethvargo requested a review from a team as a code owner December 26, 2021 21:46
@sethvargo sethvargo enabled auto-merge (squash) December 26, 2021 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants