Skip to content

Commit

Permalink
Make sure to fail for 1st level dependencies of Creditcoin
Browse files Browse the repository at this point in the history
this is an extra check which should hopefully inform us on warnings
or anything else that is a 1st level dependency of Creditcoin.
  • Loading branch information
atodorov committed Mar 20, 2023
1 parent d5130ac commit 9da4678
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ jobs:
- name: Run cargo audit
run: |
cargo audit --ignore RUSTSEC-2020-0071
CC_MATCH=$(cargo audit --ignore RUSTSEC-2020-0071 --color never | egrep "^.── creditcoin" || true)
# fail for anything which is a 1st level dependency of Creditcoin
if [ -n "$CC_MATCH" ]; then
echo "FAIL: Direct dependencies of Creditcoin found in audit report"
echo "INFO: Inspect the output above for more information"
exit 1
else
echo "INFO: No direct dependencies of Creditcoin found in audit report"
exit 0
fi
fmt:
name: Rustfmt
Expand Down

0 comments on commit 9da4678

Please sign in to comment.