Skip to content

Commit

Permalink
adjust GitHub action permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Mar 15, 2024
1 parent 69f1179 commit bec1227
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

name: Build

permissions:
contents: read

on:
workflow_call:
inputs:
Expand All @@ -21,6 +18,8 @@ on:
type: string
required: true

permissions: read-all

jobs:
Build:
runs-on: ${{ inputs.os }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_build_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

name: Build Doc

permissions:
contents: read

on:
workflow_call:
inputs:
Expand All @@ -20,6 +17,8 @@ on:
type: string
required: true

permissions: read-all

jobs:
Build:
runs-on: ${{ inputs.os }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

name: CodeCov

permissions:
contents: read

on:
workflow_call:
inputs:
Expand All @@ -21,6 +18,8 @@ on:
type: string
required: true

permissions: read-all

concurrency:
group: codecov-${{ github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/_codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ name: CodeQL
on:
workflow_call:

# Don't change this permissions. These must match those of the analyze job.
permissions:
actions: read
contents: read
security-events: write

jobs:
analyze:
name: Analyze
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_pre_commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@

name: Pre-Commit

permissions:
contents: read

on:
workflow_call:

permissions: read-all

jobs:
Pre-Commit:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_pypi_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

name: PyPI Publish

permissions:
contents: read

on:
workflow_call:
inputs:
Expand All @@ -22,6 +19,8 @@ on:
API_TOKEN:
required: true

permissions: read-all

jobs:
PyPI-Publish:
name: Upload to ${{ inputs.REPOSITORY_URL }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

name: Test Spot

permissions:
contents: read

on:
workflow_call:
inputs:
Expand All @@ -20,6 +17,8 @@ on:
type: string
required: true

permissions: read-all

jobs:
Test:
name: Test ${{ inputs.os }} ${{ inputs.python-version }}
Expand Down

0 comments on commit bec1227

Please sign in to comment.