diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 633757c9f2..c7e45afa74 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -80,7 +80,7 @@ jobs: exit 1 Check-Sensitive-Files: - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'ignore-sensitive-files-pr') }} name: Checks if sensitive files have been changed without authorization runs-on: ubuntu-latest steps: