Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 11, 2024
1 parent 1ab969a commit d32fc1d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
type: string
default: "dbt-labs/dbt-athena"

permissions:
contents: read

jobs:
code-quality:
runs-on: ubuntu-latest
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ on:
permissions:
contents: read

# don't attempt to release the same target in parallel
concurrency:
group: ${{ github.workflow }}-${{ inputs.package }}-${{ inputs.deploy-to }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -49,6 +40,7 @@ jobs:
# hatch will build using test PyPI first and fall back to prod PyPI when deploying to test
# this is done via environment variables in the test environment in GitHub
- run: hatch build && hatch run build:check-all
shell: bash
working-directory: ./${{ inputs.package }}
- uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ on:
type: string
default: "main"

permissions:
contents: read
# don't attempt to release the same target in parallel
concurrency:
group: ${{ github.workflow }}-${{ inputs.deploy-to }}
cancel-in-progress: true

jobs:
unit-tests:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ on:
type: string
default: "dbt-labs/dbt-athena"

permissions:
contents: read

jobs:
unit-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d32fc1d

Please sign in to comment.