Skip to content

Commit

Permalink
Switch GitHub Actions to use MAINTAINER_LIST secret (#23636)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinretzolk authored Mar 11, 2022
1 parent ba56834 commit 392d1c1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
changes:
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
if: github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor)
name: Filter Changes
runs-on: ubuntu-latest
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
changes:
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
if: github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor)
name: Filter Changes
runs-on: ubuntu-latest
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-comment-created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
issue_comment_triage:
if: github.event_name == 'issue_comment' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
if: github.event_name == 'issue_comment' && !contains( secrets.MAINTAINER_LIST, github.actor)
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Apply Issue needs-triage Label
if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
if: github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor)
uses: github/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maintainer-edit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
PermissionsCheck:
env:
MAINTAINER_CAN_MODIFY: ${{ github.event.pull_request.maintainer_can_modify }}
ALLOW_LISTED: ${{ contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "johnsonaj", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding"]'), github.actor) }}
ALLOW_LISTED: ${{ contains( secrets.MAINTAINER_LIST, github.actor) }}
runs-on: ubuntu-latest
steps:
- name: Comment if maintainers cannot edit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- name: Move team PRs to Review column
uses: alex-page/[email protected]
if: contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) && github.event.pull_request.draft == false
if: contains( secrets.MAINTAINER_LIST, github.actor) && github.event.pull_request.draft == false
with:
project: AWS Provider Working Board
column: Open Maintainer PR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- name: Apply needs-triage Label
uses: actions/labeler@v4
if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
if: github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor)
with:
configuration-path: .github/labeler-pr-needs-triage.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 392d1c1

Please sign in to comment.