diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 44537f1338..f265b5fedb 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -20,6 +20,13 @@ jobs: PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }} MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }} steps: + - name: Check if user has write access + uses: lannonbr/repo-permission-check-action@2.0.2 + with: + permission: write + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 - uses: actions/checkout@v4 with: diff --git a/.github/workflows/preview-comment.yml b/.github/workflows/preview-comment.yml index 7ed6bdf6f6..9fb0f48c39 100644 --- a/.github/workflows/preview-comment.yml +++ b/.github/workflows/preview-comment.yml @@ -13,6 +13,13 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check if user has write access + uses: lannonbr/repo-permission-check-action@2.0.2 + with: + permission: write + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: | gh issue edit ${{ github.event.issue.number }} --add-label "pr: preview" --repo ${{ github.repository }} env: diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index bee678c962..6f813dbd37 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -25,10 +25,10 @@ jobs: issues: write pull-requests: write steps: - - name: "Check if user has write access" - uses: "lannonbr/repo-permission-check-action@2.0.2" + - name: Check if user has write access + uses: lannonbr/repo-permission-check-action@2.0.2 with: - permission: "write" + permission: write env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}