Skip to content

Commit

Permalink
make permissions job specifci
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Jan 17, 2025
1 parent f627a28 commit 95198ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
issue_comment:
types: [created]

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand All @@ -19,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/llnl/sundials_spack_cache:llvm-17.0.4-h4lflucc3v2vage45opbo2didtcuigsn.spack
permissions:
contents: write
steps:
- name: Install git
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
issue_comment:
types: [created]

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand Down Expand Up @@ -65,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
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/check-swig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
issue_comment:
types: [created]

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
Expand Down Expand Up @@ -73,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
Expand Down

0 comments on commit 95198ba

Please sign in to comment.