Skip to content

Commit

Permalink
workflow permissions updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Mar 18, 2024
1 parent 02dfdb7 commit 97bd81c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
# Detects changes to any of the source files for entitlements-app
changes:
runs-on: ubuntu-latest
permissions:
contents: read

outputs:
has_change: ${{ steps.diff.outputs.has_change}}
Expand Down Expand Up @@ -57,8 +58,6 @@ jobs:
strategy:
matrix:
ruby: [ '2.7.5', '3.1.2', '3.2.2', '3.3.0' ]
permissions:
contents: read

steps:
- uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # [email protected]
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ on:
schedule:
- cron: '25 4 * * 5'

permissions:
actions: read
contents: read
security-events: write

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
rubocop:
name: runner / rubocop
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.7.5', '3.1.2', '3.2.2', '3.3.0' ]
permissions:
contents: read

steps:
- name: checkout
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
rubocop:
name: runner / rspec
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.7.5', '3.1.2', '3.2.2', '3.3.0' ]
permissions:
contents: read

steps:
- name: checkout
Expand Down

0 comments on commit 97bd81c

Please sign in to comment.