Update Go version in Docker, and re-enable SCC/Scorecard #2957
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This commit fixes a couple of things.
Firstly, the
install-go
script uses an ancient version of Go that conflicts with the newer version needed for SCC, so that is updated. That script also wrapped the install in a function for no apparent reason, so I simplified it.Second, I re-enabled the SCC & Scorecard installs. These have been commented out for some time, apparently because of the Go issues. Rather than uncomment it, I copied the relevant parts from
workers.sh
because the container doesn't need checks about whether directories exist - these are guaranteed not to exist in a fresh container.Notes for Reviewers
I believe this will result in working SCC and Scorecard calculations in the container now
Signed commits