Skip to content

Commit

Permalink
add token permissions to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jul 12, 2024
1 parent 091d25f commit 3806bea
Show file tree
Hide file tree
Showing 6 changed files with 21 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 and test Python package

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cffconvert.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: cffconvert

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/format-typing-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Check format and static typing

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: markdown-link-check

permissions:
contents: read

on:
push:
branches:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/publish_gh_release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Draft or publish Github release
# this action will automatically create a tag for the latest commit

permissions:
actions: write
contents: write
packages: write
pull-requests: write
statuses: read

on:
workflow_dispatch:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sonar-cloud.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Check coverage

permissions: read-all

on:
push:
branches:
Expand Down

0 comments on commit 3806bea

Please sign in to comment.