From 31b5e9a3497668bc7405af51223dc6cf3eb83c48 Mon Sep 17 00:00:00 2001 From: Ryan Parman Date: Fri, 27 Oct 2023 13:50:25 -0600 Subject: [PATCH] lint: Additional linting. --- .github/dependency-review-config.yml | 12 ++++++++++++ .github/workflows/osv-scanner.yml | 2 +- .github/workflows/pr-dep-review.yml | 25 +++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/dependency-review-config.yml create mode 100644 .github/workflows/pr-dep-review.yml diff --git a/.github/dependency-review-config.yml b/.github/dependency-review-config.yml new file mode 100644 index 00000000..58ee6377 --- /dev/null +++ b/.github/dependency-review-config.yml @@ -0,0 +1,12 @@ +--- +fail-on-severity: low +license-check: true +vulnerability-check: yes +comment-summary-in-pr: on-failure +allow-licenses: + - Apache-2.0 + - BSD-2-Clause + - BSD-3-Clause + - ISC + - MPL-2.0 + - MIT diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml index 96004656..0a395848 100644 --- a/.github/workflows/osv-scanner.yml +++ b/.github/workflows/osv-scanner.yml @@ -3,7 +3,7 @@ # by a third-party and are governed by separate terms of service, privacy # policy, and support documentation. -name: osv-scanner +name: OSV Scanner on: push: branches: diff --git a/.github/workflows/pr-dep-review.yml b/.github/workflows/pr-dep-review.yml new file mode 100644 index 00000000..c037bfd6 --- /dev/null +++ b/.github/workflows/pr-dep-review.yml @@ -0,0 +1,25 @@ +--- +# This workflow uses actions that are not certified by GitHub. They are provided +# by a third-party and are governed by separate terms of service, privacy +# policy, and support documentation. + +name: PR Dependency Review +on: [pull_request] + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + name: Scan PR for dependency issues + permissions: + pull-requests: write + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Dependency Review + uses: actions/dependency-review-action@v3 + with: + config-file: ./.github/dependency-review-config.yml