Skip to content

Commit

Permalink
Merge pull request #1617 from mandiant/fix/issue-1616
Browse files Browse the repository at this point in the history
ci: restrict permissions of GITHUB_TOKEN
  • Loading branch information
williballenthin committed Jul 10, 2023
2 parents 1373fab + 454b6d1 commit aa80552
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 @@ -2,6 +2,9 @@
# https://blog.trailofbits.com/2023/05/23/trusted-publishing-a-new-benchmark-for-packaging-security/
name: publish to pypi

permissions:
contents: write

on:
release:
types: [published]
Expand Down

0 comments on commit aa80552

Please sign in to comment.