Skip to content

Commit

Permalink
Adding missing permissions on GHA (#5870)
Browse files Browse the repository at this point in the history
* Adding missing permissions on GHA

* Adding read all permissions explicitly
  • Loading branch information
leahwicz authored Sep 21, 2022
1 parent c109f39 commit 49ecd6a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/jira-transition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
issues:
types: [closed, deleted, reopened]

# no special access is needed
permissions: read-all

jobs:
call-label-action:
uses: dbt-labs/jira-actions/.github/workflows/jira-transition.yml@main
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
description: 'The release version number (i.e. 1.0.0b1)'
required: true

permissions:
contents: write # this is the permission that allows creating a new release

defaults:
run:
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/schema-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
- "*.latest"
- "releases/*"

# no special access is needed
permissions: read-all

env:
LATEST_SCHEMA_PATH: ${{ github.workspace }}/new_schemas
SCHEMA_DIFF_ARTIFACT: ${{ github.workspace }}//schema_schanges.txt
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: "30 1 * * *"

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
description: 'The version number to bump to (ex. 1.2.0, 1.3.0b1)'
required: true

permissions:
contents: write
pull-requests: write

jobs:
bump:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 49ecd6a

Please sign in to comment.