Skip to content

Commit

Permalink
clone test repo as ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
zainasir committed Jan 15, 2025
1 parent 3b7b8d1 commit 286cc39
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 286cc39

Please sign in to comment.