Skip to content

Commit

Permalink
specify versions of scc and scorecard
Browse files Browse the repository at this point in the history
This fixes an issue with scc where the latest version requires a golang update to build.

This also prevents the same happening to scorecard in future
  • Loading branch information
MoralCode committed Feb 22, 2025
1 parent 3ae780c commit a6ab270
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/docker/install-golang-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ CURRENT_DIR=$PWD;
# Install scc
SCC_DIR="$HOME/scc"
echo "Cloning Sloc Cloc and Code (SCC) to generate value data ..."
git clone https://github.com/boyter/scc "$SCC_DIR"
# this needs to be done from source. the latest version doesnt seem to exist on the package repo
# however, the latest version (v3.5.0) requires bumping the golang version in the Dockerfile
git clone --depth 1 --branch v3.4.0 https://github.com/boyter/scc "$SCC_DIR"
cd $SCC_DIR
go build;
echo "scc build done"
Expand All @@ -17,7 +19,8 @@ cd $CURRENT_DIR
# Install scorecard
SCORECARD_DIR="$HOME/scorecard"
echo "Cloning OSSF Scorecard to generate scorecard data ..."
git clone https://github.com/ossf/scorecard $SCORECARD_DIR
# lock version to prevent future issues if the golang version is bumped
git clone --depth 1 --branch v5.1.1 https://github.com/ossf/scorecard $SCORECARD_DIR
cd $SCORECARD_DIR
go build;
echo "scorecard build done"
Expand Down

0 comments on commit a6ab270

Please sign in to comment.