ci: add minimal permissions to workflows bump.yml and release.yml (#245) Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 91614e0..1481d64 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml
@@ -6,10 +6,16 @@ # 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
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a4d9db..e75031c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml
@@ -6,6 +6,9 @@ name: release +permissions: + contents: read + jobs: build: name: Build distributions for PyPI