-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update external prs app to handle
ossd
PR validation (#1182)
* Update external-prs app to namespace * Update gh workflows to use new namespacing
- Loading branch information
Showing
18 changed files
with
1,276 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
# This workflow will run every 30 mins to hopefully ensure that credentials | ||
# don't expire even if this script errors. | ||
name: refresh-test-credentials | ||
env: | ||
PR_TOOLS_REPO: ${{ github.repository }} | ||
|
||
# For now this only runs on a schedule once a day. Once we have made some of the | ||
# plugin workflows more incremental we will run this on _every_ commit to main | ||
|
@@ -54,22 +56,23 @@ jobs: | |
run: | | ||
cd ops/external-prs && | ||
bash scripts/rotate-service-account.sh [email protected] dummy.json && | ||
pnpm tools refresh-gcp-credentials --secret=false ${{ github.repository }} testing dummy.json GOOGLE_TEST_DUMMY_CREDENTIALS_JSON | ||
pnpm tools oso refresh-gcp-credentials --secret=false testing dummy.json GOOGLE_TEST_DUMMY_CREDENTIALS_JSON | ||
# These credentials are intended to be secret | ||
- name: Refresh credentials for the bigquery-admin user on the external-prs-app environment | ||
shell: bash | ||
run: | | ||
cd ops/external-prs && | ||
bash scripts/rotate-service-account.sh [email protected] bigquery-admin.json && | ||
pnpm tools refresh-gcp-credentials ${{ github.repository }} external-prs-app bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
pnpm tools oso refresh-gcp-credentials external-prs-app bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
- name: Refresh credentials for the bigquery-admin user on the deploy environment | ||
shell: bash | ||
run: | | ||
cd ops/external-prs && | ||
bash scripts/rotate-service-account.sh [email protected] bigquery-admin.json && | ||
pnpm tools refresh-gcp-credentials ${{ github.repository }} deploy bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
pnpm tools refresh-gcp-credentials oso deploy bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
rebuild-docker-public-vars: | ||
name: rebuild-docker-public-vars | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Repo } from "./github.js"; | ||
import { App } from "octokit"; | ||
|
||
export interface BaseArgs { | ||
githubAppPrivateKey: string; | ||
githubAppId: string; | ||
repo: Repo; | ||
app: App; | ||
} |
Oops, something went wrong.