From 1e099f72d597ae87e9214011aded9e20ac5c0dad Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lachance Date: Fri, 19 Jan 2024 12:01:07 -0500 Subject: [PATCH] Fix a CI mistake The dependency-review job can only run in a PR ! Fix the dependency-review job J:DEF-160 --- .github/workflows/ci.yml | 9 --------- .github/workflows/dependency-review.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7456f03..bb6efdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,12 +27,3 @@ jobs: with: python-version: "3.10" project-name: aws_auth_eks_crd - - dependency-review: - name: Dependency Review - runs-on: ubuntu-latest - steps: - - name: 'Checkout Repository' - uses: actions/checkout@v4 - - name: 'Dependency Review' - uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000..ff32ba8 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,16 @@ +name: 'Dependency Review' + +on: + pull_request: + branches: [ "master" ] + +permissions: + contents: read + pull-requests: write + +jobs: + dependency-Review: + uses: coveo/public-actions/.github/workflows/dependency-review.yml@main + with: + public: true + distributed: true