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

Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
  • Loading branch information
MoralCode committed Feb 23, 2025
1 parent 04f6e32 commit 022ac35
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 022ac35

Please sign in to comment.