Skip to content

Commit

Permalink
ci: add minimal permissions to workflows bump.yml and release.yml (#245)
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
  • Loading branch information
diogoteles08 committed Sep 7, 2023
1 parent 600713d commit 7f0e639
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ on:
# Run daily
- cron: "0 0 * * *"

permissions:
contents: read

jobs:
bump:
if: github.repository_owner == 'certifi'
runs-on: ubuntu-latest
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- run: make update
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

name: release

permissions:
contents: read

jobs:
build:
name: Build distributions for PyPI
Expand Down

0 comments on commit 7f0e639

Please sign in to comment.