replace unused cargo-deny check with a new cargo-deny-licenses job (#13956)

* ci: remove the cargo-deny job

It's been broken and disabled for quite a while, and per internal
discussion there doesn't seem to be any interest in fixing it and
actually using the job output for anything.

* ci: add new cargo-deny-licenses job

It'll run on all PRs and fail if external dependencies with unsuitable
licenses are detected.
This commit is contained in:
Mira Ressel
2023-04-20 14:03:05 +02:00
committed by GitHub
parent 040011a056
commit 9544ec765d
3 changed files with 73 additions and 156 deletions
@@ -21,27 +21,27 @@ find-fail-ci-phrase:
exit 0;
fi
cargo-deny:
cargo-deny-licenses:
stage: test
extends:
- .docker-env
- .nightly-pipeline
- .test-refs
variables:
CARGO_DENY_CMD: "cargo deny --all-features check licenses -c ./scripts/ci/deny.toml"
script:
- rusty-cachier snapshot create
- cargo deny check --hide-inclusion-graph -c ./scripts/ci/deny.toml
- $CARGO_DENY_CMD --hide-inclusion-graph
- rusty-cachier cache upload
after_script:
- !reference [.rusty-cachier, after_script]
- echo "___The complete log is in the artifacts___"
- cargo deny check -c ./scripts/ci/deny.toml 2> deny.log
- $CARGO_DENY_CMD 2> deny.log
artifacts:
name: $CI_COMMIT_SHORT_SHA
expire_in: 3 days
when: always
paths:
- deny.log
# FIXME: Temporarily allow to fail.
allow_failure: true
cargo-fmt:
stage: test