Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set permissions to GITHUB_TOKEN #2848

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
- closed
- labeled

permissions: {}

jobs:
backport:
runs-on: ubuntu-20.04
name: Backport
permissions:
contents: write
steps:
- name: Backport Bot
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- master
- r*

permissions:
contents: read

jobs:
flake8-test:
name: Flake8
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/notify_codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: [opened]


permissions:
contents: read

jobs:
notify-codeowners:
name: Notify codeowners
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
- master
- r*

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@74e7c423dafbb406c9c18b1638334f67a7c891c3 # Version 5.7.0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- master
- r*

permissions:
contents: read

env:
MIN_PY_VERSION: '3.9'
MAX_PY_VERSION: '3.11'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate_codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
# Otherwise, it's useless, it just check the codeowners file from the latest commit in master


permissions:
contents: read

jobs:
validate-codeowners:
name: Check that the CODEOWNERS is valid
Expand Down