Skip to content

Commit

Permalink
Minimize GITHUB_TOKEN permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Apr 29, 2023
1 parent 43950ee commit 97865d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

permissions:
contents: read

on:
pull_request:
push:
Expand Down Expand Up @@ -89,6 +92,10 @@ jobs:
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout

security_audit:
permissions:
checks: write
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Release

permissions:
contents: write

on:
push:
tags:
Expand Down

0 comments on commit 97865d1

Please sign in to comment.