Skip to content

Commit

Permalink
Merge pull request #5940 from osalyk/scan_coverity
Browse files Browse the repository at this point in the history
common: enable coverity scan on workflow_dispatch event
  • Loading branch information
janekmi authored Nov 24, 2023
2 parents 13a9123 + ff63320 commit 7538b71
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/docker/run-coverity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ echo -n | openssl s_client -connect scan.coverity.com:443 | \
echo $USERPASS | sudo -S mv $TEMP_CF $CERT_FILE

export COVERITY_SCAN_PROJECT_NAME="$CI_REPO_SLUG"
[[ "$CI_EVENT_TYPE" == "cron" ]] \
&& export COVERITY_SCAN_BRANCH_PATTERN="master" \
|| export COVERITY_SCAN_BRANCH_PATTERN="coverity_scan"
if [[ "$CI_EVENT_TYPE" == "cron" || "$CI_EVENT_TYPE" == "workflow_dispatch" ]]; then
export COVERITY_SCAN_BRANCH_PATTERN="master"
else
export COVERITY_SCAN_BRANCH_PATTERN="coverity_scan"
fi
export COVERITY_SCAN_BUILD_COMMAND="make -j$(nproc) all"

cd $WORKDIR
Expand Down

0 comments on commit 7538b71

Please sign in to comment.