Minimize GITHUB_TOKEN permissions

Refs: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token
This commit is contained in:
Taiki Endo 2023-06-09 00:13:26 +09:00
parent a1cb2c24d7
commit e73c660c5c
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,8 @@
name: CI
permissions:
contents: read
on:
pull_request:
push:
@ -70,6 +73,10 @@ jobs:
- run: cargo fmt --all --check
security_audit:
permissions:
checks: write
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@ -1,5 +1,8 @@
name: Release
permissions:
contents: write
on:
push:
tags: