1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-11 01:46:30 +00:00
kata-containers/ci
Derek Lee bed4aab7ee github-actions: Add cargo-deny
Adds cargo-deny to scan for vulnerabilities and license issues regarding
rust crates.

GitHub Actions does not have an obvious way to loop over each of the
Cargo.toml files. To avoid hardcoding it, I worked around the problem
using a composite action that first generates the cargo-deny action by
finding all Cargo.toml files before calling this new generated action in
the master workflow.

Uses recommended deny.toml from cargo-deny repo with the following
modifications:

 ignore = ["RUSTSEC-2020-0071"]
  because chrono is dependent on the version of time with the
  vulnerability and there is no simple workaround

 multiple-versions = "allow"
  Because of the above error and other packages, there are instances
  where some crates require different versions of a crate.

 unknown-git = "allow"
  I don't see a particular issue with allowing crates from other repos.
  An alternative would be the manually set each repo we want in an
  allow-git list, but I see this as more of a nuisance that its worth.
  We could leave this as a warning (default), but to avoid clutter I'm
  going to allow it.

If deny.toml needs to be edited in the future, here's the guide:
https://embarkstudios.github.io/cargo-deny/index.html

Fixes 

Signed-off-by: Derek Lee <derlee@redhat.com>
2022-08-30 09:30:03 -07:00
..
openshift-ci/images openshift-ci: switch to CentOS Stream 2022-02-02 19:50:01 -03:00
darwin-test.sh runtime: device: move to top level package 2022-06-26 21:31:29 -07:00
docs-url-alive-check.sh ci: Weekly check whether the docs url is alive 2022-01-20 19:56:15 +08:00
install_go.sh scripts: Use shebang /usr/bin/env bash 2022-01-13 22:53:28 +01:00
install_libseccomp.sh ci: Use versions.yaml for the libseccomp 2022-08-19 09:05:08 +09:00
install_rust.sh scripts: Use shebang /usr/bin/env bash 2022-01-13 22:53:28 +01:00
install_vc.sh scripts: Use shebang /usr/bin/env bash 2022-01-13 22:53:28 +01:00
install_yq.sh kata-deploy: build kata only with docker in host 2021-07-28 19:45:35 +00:00
lib.sh github-actions: Add cargo-deny 2022-08-30 09:30:03 -07:00
run.sh scripts: Use shebang /usr/bin/env bash 2022-01-13 22:53:28 +01:00
setup.sh scripts: Use shebang /usr/bin/env bash 2022-01-13 22:53:28 +01:00
static-checks.sh ci: Pass function arguments in static-checks.sh 2022-01-24 12:05:10 +01:00