Skip to content

Commit

Permalink
Add explicit GITHUB_TOKEN permissions for each workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweger committed Feb 28, 2025
1 parent b4667c5 commit a6f0223
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read

env:
FORCE_COLOR: "1"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-pypi-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- main
permissions:
contents: read

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
tags:
# only run workflow for tags in release format
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: read

jobs:
build:
Expand Down

0 comments on commit a6f0223

Please sign in to comment.