🐛 remove setup-go requirement for Packaging with goreleaser#4673
🐛 remove setup-go requirement for Packaging with goreleaser#4673spencerschrock merged 3 commits intoossf:mainfrom
Conversation
Signed-off-by: Adam Korczynski <adam@adalogics.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4673 +/- ##
==========================================
+ Coverage 66.80% 68.30% +1.49%
==========================================
Files 230 249 +19
Lines 16602 18895 +2293
==========================================
+ Hits 11091 12906 +1815
- Misses 4808 5130 +322
- Partials 703 859 +156 🚀 New features to boost your workflow:
|
This is by design, the matcher is looking for every step in the pattern to be in the job. "Each step in this field has a matching step in the job" scorecard/checks/fileparser/github_workflow.go Lines 328 to 333 in 42e0ac2 As written, this PR would give credit to any repo which uses I think the question we want to ask is: do we need actions/setup-go to give credit for a goreleaser release workflow. scorecard/checks/fileparser/github_workflow.go Lines 557 to 565 in 42e0ac2 |
|
Thanks @spencerschrock Essentially this means that we (in this case) only detect a goreleaser use if it is preceded by a step using |
as long as all steps are present, I don't think order matters to our current implementation.
This predates my time on the project. Detection for Go was first added in #800, but similar logic (expecting language setup) was added in #132 for npm and Python. My guess is it was to cut down on false positives, as the entire workflow file was scanned with a regex, instead of the workflow parsing and step analysis that happens now. |
|
okay, it may be better to remove |
Seems reasonable to me. |
Signed-off-by: Adam Korczynski <adam@adalogics.com>
|
Updated the PR and the PR description. |
|
/scdiff generate Packaging,Token-Permissions |
What kind of change does this PR introduce?
(Is it a bug fix, feature, docs update, something else?)
What is the current behavior?
Currently, the Go
JobMatcherrequires both thesetup-goandgoreleaseractions to be used to consider the project to use and automated releaser. Some users have adopted other actions that install Go and still use thegoreleaseraction in which case Scorecard will not see thegoreleaseraction.What is the new behavior (if this is a feature change)?**
This PR removes the requirement that users must use the
setup-goaction to Scorecard recognizinggoreleaser.Which issue(s) this PR fixes
Fixes #4617
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note(In particular, describe what changes users might need to make in their
application as a result of this pull request.)