Skip to content

Commit

Permalink
🔒 Add CircleCI SHA-256 binary check
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Nov 30, 2022
1 parent 1a73082 commit 02cc364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ steps:
name: Qodana Scan
command: |
set -e
QODANA_SHA_256=8e087bf01fcd79a2cdcd4f2663e93a73e6a0de2a6fb1985e028f0b28384504c7
CLI_DIRECTORY=/tmp/cache/qodana-cli/2022.2.4
mkdir -p $CLI_DIRECTORY
if [[ ! -x "$CLI_DIRECTORY/qodana" ]]; then
curl -fsSL https://jb.gg/qodana-cli/install | bash -s -- \
v2022.2.4 $CLI_DIRECTORY \
1> /dev/null
fi
echo "$QODANA_SHA_256 $CLI_DIRECTORY/qodana" | sha256sum -c
NONINTERACTIVE=1 $CLI_DIRECTORY/qodana scan \
--cache-dir << parameters.cache-dir >> \
-o << parameters.results-dir >> \
Expand Down

0 comments on commit 02cc364

Please sign in to comment.