-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -478,17 +478,23 @@ jobs: | |
FAILURE_MESSAGE: 'failing' | ||
FAILURE_COLOR: 'FF0A0A' | ||
SEVERITY_THRESHOLD: 'CRITICAL' | ||
TEST_REPO_URL: '[email protected]:cBioPortal/cbioportal-test.git' | ||
steps: | ||
- attach_workspace: | ||
at: /tmp/repos | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "SHA256:vtzpWrYBLQAMgZIsEv3Nuc1HeINJXFFtUB+IpSY/AK4" | ||
- run: | ||
name: Set up Git user | ||
name: Set up git user | ||
command: | | ||
git config --global user.name "CircleCI Bot" | ||
git config --global user.email "[email protected]" | ||
- run: | ||
name: Clone test repo using ssh url | ||
command: | | ||
rm -rf cbioportal-test | ||
git clone $TEST_REPO_URL | ||
- run: | ||
name: Count vulnerabilities and update status badge | ||
command: | | ||
|
@@ -500,13 +506,13 @@ jobs: | |
jq --arg msg "$FAILURE_MESSAGE" --arg col "$FAILURE_COLOR" '.message = $msg | .color = $col' security-status.json > security-status.json | ||
fi | ||
echo "security-status.json has been updated." | ||
cat security-status.json | ||
cat security-status.json | jq | ||
- run: | ||
name: Push new security status to cbioportal/cbioportal-test | ||
command: | | ||
cd cbioportal-test | ||
git diff | ||
git add -A | ||
git add security-status.json | ||
git commit -m "Update security status" | ||
git push | ||
|