From c893525069bea4f747859aa0b1443e6305439db3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:00:33 +0000 Subject: [PATCH] Bump actions/dependency-review-action from 2 to 4 (#5684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump actions/dependency-review-action from 2 to 4 Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2 to 4. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * ci: 🎡 remove unneeded auto-approve --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jaskaransarkaria --- .github/workflows/auto-approve-pr.yml | 41 ------------------------- .github/workflows/dependency-review.yml | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 .github/workflows/auto-approve-pr.yml diff --git a/.github/workflows/auto-approve-pr.yml b/.github/workflows/auto-approve-pr.yml deleted file mode 100644 index 2b672341..00000000 --- a/.github/workflows/auto-approve-pr.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Auto-approve a pull request - -on: - pull_request - -env: - PR_OWNER: ${{ github.event.pull_request.user.login }} - GITHUB_OAUTH_TOKEN: ${{ secrets.DOCUMENT_REVIEW_GITHUB }} - TEAM_NAME: "WebOps" - -jobs: - check-diff: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - - steps: - - name: Checkout PR code - uses: actions/checkout@v4 - - run: | - git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - - name: Run git diff against repository - run: | - git diff origin/main HEAD > changes - - name: Auto-approval check - id: approve_pr_check - uses: ministryofjustice/cloud-platform-doc-checker@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_OWNER: ${{ github.event.pull_request.user.login }} - GITHUB_OAUTH_TOKEN: ${{ secrets.DOCUMENT_REVIEW_GITHUB }} - TEAM_NAME: "WebOps" - - - name: Approving PR - uses: hmarr/auto-approve-action@v4 - - if: steps.approve_pr_check.outputs.review_pr == 'true' - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0925fb8a..0c730823 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -15,7 +15,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - name: Dependency Review - uses: actions/dependency-review-action@v2 + uses: actions/dependency-review-action@v4 with: # Possible values: critical, high, moderate, low fail-on-severity: critical