diff --git a/.github/workflows/wait-for-checks.yaml b/.github/workflows/wait-for-checks.yaml new file mode 100644 index 0000000..95fa084 --- /dev/null +++ b/.github/workflows/wait-for-checks.yaml @@ -0,0 +1,25 @@ +name: Checks + +on: + pull_request: + types: [opened, edited, synchronize] + branches: [main] + +# Disable permissions for all available scopes +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + enforce-all-checks: + permissions: + checks: read + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: GitHub Checks + uses: poseidon/wait-for-status-checks@6988432d64ad3f9c2608db4ca16fded1b7d36ead # v0.5.0 + with: + token: ${{ secrets.GITHUB_TOKEN }}