Skip to content

Commit

Permalink
chore(ci): More workflow permission changes (#11394)
Browse files Browse the repository at this point in the history
Working towards have the minimum permissions in our CI workflows.
  • Loading branch information
Josh-Walker-GM authored Aug 29, 2024
1 parent bf709ab commit 9292ec5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
check-changesets:
name: 📝 Check changesets
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-create-redwood-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
check-create-redwood-app:
name: Check create redwood app
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-test-project-fixture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
detect-changes:
if: github.repository == 'redwoodjs/redwood'
Expand Down Expand Up @@ -39,6 +41,8 @@ jobs:
if: needs.detect-changes.outputs.code == 'true'
name: Check test project fixture
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write
permissions: {}

jobs:
analyze:
name: 🔬 Analyze
runs-on: ubuntu-latest
permissions:
security-events: write

strategy:
fail-fast: false
Expand Down

0 comments on commit 9292ec5

Please sign in to comment.