Skip to content
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

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

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Conversation

sethvargo
Copy link
Member

@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