Skip to content

Commit

Permalink
ci: fail CI if cargo deny check reports any issue
Browse files Browse the repository at this point in the history
The echo command was swallowing the exit code of cargo deny.
  • Loading branch information
typfel committed Dec 16, 2024
1 parent 1da161c commit b17f7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: taiki-e/install-action@cargo-deny
- name: "Check Licenses / Supply Chain"
run: |
echo "`$(cargo deny --all-features check)`" >> $GITHUB_STEP_SUMMARY
cargo deny --all-features check >> $GITHUB_STEP_SUMMARY
- name: "Build a dependency licenses inventory and post it to Summary"
run: |
cargo deny --all-features list --layout crate --format json | jq -r 'to_entries[] | "* \(.key)", " * \(.value.licenses[])"' >> $GITHUB_STEP_SUMMARY

0 comments on commit b17f7dc

Please sign in to comment.