Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Aug 9, 2024
1 parent 7e043f8 commit a71452b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
pull_request:
types: [labeled]

permissions: read-all
permissions:
contents: read

jobs:
automerge:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/code-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ on:
issue_comment:
types: [created]

permissions: read-all
permissions:
contents: write
pull-requests: write

jobs:
# Check if the pull request target branch matches the required branch-regex?
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Dependabot auto-merge
on: pull_request_target

permissions: read-all
permissions:
contents: read

jobs:
dependabot:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
push:
branches: ["main"]

# Declare default permissions as read only.
permissions: read-all
permissions:
contents: read

jobs:
analysis:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
# Runs every half hour
- cron: "*/30 * * * *"

permissions: read-all
permissions:
contents: read

jobs:
update_dockerfile:
Expand Down

0 comments on commit a71452b

Please sign in to comment.