Skip to content

Commit

Permalink
Merge pull request #24 from nodenv/default-permissions
Browse files Browse the repository at this point in the history
Default toplevel permissions to read-all
  • Loading branch information
jasonkarns authored May 29, 2024
2 parents 85ab3c3 + 496a52f commit cf1d379
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflow-templates/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Release
on:
push: { tags: "v[0-9]+.[0-9]+.[0-9]+*" }

permissions: read-all

jobs:
github:
permissions: { contents: write }
Expand Down
2 changes: 2 additions & 0 deletions workflow-templates/sync-default-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push: { branches: $default-branch }
workflow_dispatch:

permissions: read-all

# One-time commands for users to switch-over:
#
# ```console
Expand Down
2 changes: 2 additions & 0 deletions workflow-templates/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test
on: [push, pull_request, workflow_dispatch]

permissions: read-all

jobs:
test:
uses: nodenv/.github/.github/workflows/test.yml@v4
Expand Down

0 comments on commit cf1d379

Please sign in to comment.