diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index f96e3cdaf7..34085430c5 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -82,6 +82,8 @@ jobs: if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/autofix')) }} needs: format_check runs-on: ubuntu-latest + permissions: + contents: write steps: # Checkout the GitHub created reference for the PR. # The only way to do this is by using the "issue" number diff --git a/.github/workflows/check-spelling.yml b/.github/workflows/check-spelling.yml index 70da910142..9ad9c6af67 100644 --- a/.github/workflows/check-spelling.yml +++ b/.github/workflows/check-spelling.yml @@ -62,6 +62,8 @@ jobs: if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/autofix')) }} needs: spelling_check runs-on: ubuntu-latest + permissions: + contents: write steps: # Checkout the GitHub created reference for the PR. # The only way to do this is by using the "issue" number diff --git a/.github/workflows/check-swig.yml b/.github/workflows/check-swig.yml index ba7b97aaf4..3948a1ccfc 100644 --- a/.github/workflows/check-swig.yml +++ b/.github/workflows/check-swig.yml @@ -70,6 +70,8 @@ jobs: if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/autofix')) }} needs: swig_check runs-on: ubuntu-latest + permissions: + contents: write steps: # Checkout the GitHub created reference for the PR. # The only way to do this is by using the "issue" number