Skip to content

Commit 392d1c1

Browse files
Switch GitHub Actions to use MAINTAINER_LIST secret (#23636)
1 parent ba56834 commit 392d1c1

7 files changed

+7
-7
lines changed

.github/workflows/changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
changes:
16-
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
16+
if: github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor)
1717
name: Filter Changes
1818
runs-on: ubuntu-latest
1919
outputs:

.github/workflows/dependencies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
changes:
12-
if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
12+
if: github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor)
1313
name: Filter Changes
1414
runs-on: ubuntu-latest
1515
outputs:

.github/workflows/issue-comment-created.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
issue_comment_triage:
9-
if: github.event_name == 'issue_comment' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
9+
if: github.event_name == 'issue_comment' && !contains( secrets.MAINTAINER_LIST, github.actor)
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions-ecosystem/action-remove-labels@v1

.github/workflows/issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v3
1010
- name: Apply Issue needs-triage Label
11-
if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
11+
if: github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor)
1212
uses: github/issue-labeler@v2.4
1313
with:
1414
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/maintainer-edit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
PermissionsCheck:
88
env:
99
MAINTAINER_CAN_MODIFY: ${{ github.event.pull_request.maintainer_can_modify }}
10-
ALLOW_LISTED: ${{ contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "johnsonaj", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding"]'), github.actor) }}
10+
ALLOW_LISTED: ${{ contains( secrets.MAINTAINER_LIST, github.actor) }}
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Comment if maintainers cannot edit

.github/workflows/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- name: Move team PRs to Review column
1010
uses: alex-page/github-project-automation-plus@v0.8.1
11-
if: contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) && github.event.pull_request.draft == false
11+
if: contains( secrets.MAINTAINER_LIST, github.actor) && github.event.pull_request.draft == false
1212
with:
1313
project: AWS Provider Working Board
1414
column: Open Maintainer PR

.github/workflows/pull_requests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v3
1919
- name: Apply needs-triage Label
2020
uses: actions/labeler@v4
21-
if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor)
21+
if: github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor)
2222
with:
2323
configuration-path: .github/labeler-pr-needs-triage.yml
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)