Skip to content

Commit

Permalink
ci: restrict permissions of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
closes #1616
  • Loading branch information
williballenthin committed Jul 10, 2023
1 parent 506d677 commit dc1f2e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: build

permissions:
contents: write

on:
pull_request:
branches: [ master ]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

name: publish to pypi

permissions:
contents: write

on:
release:
types: [published]
Expand Down

0 comments on commit dc1f2e7

Please sign in to comment.