Skip to content

Commit fba1039

Browse files
authored
Don't dismiss stale approvals on users with write permission either. (#1241)
* Don't dismiss stale approvals on users with write permission either. Previously was only allowing admin permission to keep their approvals.
1 parent dc288a4 commit fba1039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/checks_secure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
dismiss_stale_approvals:
14-
# Dismiss stale approvals for non-admins or if this PR comes from a fork.
14+
# Dismiss stale approvals for users without write access, or if this PR comes from a fork.
1515
runs-on: ubuntu-20.04
1616
# Only if another commit was added to the PR.
1717
steps:
@@ -20,7 +20,7 @@ jobs:
2020
uses: scherermichael-oss/[email protected]
2121
# This action sets outputs.has-permission to '1' or ''
2222
with:
23-
required-permission: admin
23+
required-permission: write
2424
env:
2525
GITHUB_TOKEN: ${{ github.token }}
2626
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)