Skip to content

Commit

Permalink
Add base permissions to GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Jan 8, 2023
1 parent 39f59dc commit 12de7a9
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ jobs:
package: praw
name: CI
on: [ pull_request, push ]
permissions: read-all
2 changes: 2 additions & 0 deletions .github/workflows/manual_tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ on:
commit:
description: The commit the version bump occurred
required: true
permissions:
contents: write
3 changes: 3 additions & 0 deletions .github/workflows/pre-commit_autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ on:
schedule:
- cron: 0 15 * * 1
workflow_dispatch:
permissions:
contents: read
pull-requests: write
3 changes: 3 additions & 0 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ on:
version:
description: The version to prepare for release
required: true
permissions:
contents: read
pull-requests: write
2 changes: 2 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ name: Upload Python Package
on:
release:
types: [ published ]
permissions:
contents: read
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
with:
sarif_file: results.sarif
name: Scorecards supply-chain security
permissions: read-all
on:
branch_protection_rule:
push:
branches: [ master ]
schedule:
- cron: 30 1 * * 6
permissions: read-all
2 changes: 2 additions & 0 deletions .github/workflows/set_active_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ name: Set Active Docs
on:
release:
types: [ published ]
permissions:
contents: read
3 changes: 3 additions & 0 deletions .github/workflows/stale_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ on:
schedule:
- cron: 0 */6 * * *
workflow_dispatch:
permissions:
issues: write
pull-requests: write
2 changes: 2 additions & 0 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ name: Tag Release
on:
push:
branches: [ master, release_test ]
permissions:
contents: write

0 comments on commit 12de7a9

Please sign in to comment.