Skip to content

Commit a8962e3

Browse files
committed
chore: PR for moving secrets
Signed-off-by: Steve Hipwell <[email protected]>
1 parent 77035e6 commit a8962e3

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Hack - Move Secrets
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions: read-all
9+
10+
jobs:
11+
hack:
12+
name: Hack
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
environment:
17+
name: hack
18+
defaults:
19+
run:
20+
shell: bash
21+
steps:
22+
- name: Hack
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.API_TOKEN }}
25+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
26+
PASSPHRASE: ${{ secrets.PASSPHRASE }}
27+
DOTCOM_TEST_USER_TOKEN: ${{ secrets.DOTCOM_TEST_USER_TOKEN }}
28+
DOTCOM_TEST_COLLABORATOR_TOKEN: ${{ secrets.DOTCOM_TEST_COLLABORATOR_TOKEN }}
29+
GHES_TEST_USER_TOKEN: ${{ secrets.GHES_TEST_USER_TOKEN }}
30+
run: |
31+
set -eou pipefail
32+
33+
# gh secret set --repo "${GITHUB_REPOSITORY}" --env release --app actions "GPG_PRIVATE_KEY" --body "${GPG_PRIVATE_KEY}"
34+
# gh secret set --repo "${GITHUB_REPOSITORY}" --env release --app actions "PASSPHRASE" --body "${PASSPHRASE}"
35+
gh secret set --repo "${GITHUB_REPOSITORY}" --env acctest-dotcom --app actions "DOTCOM_TEST_USER_TOKEN" --body "${DOTCOM_TEST_USER_TOKEN}"
36+
gh secret set --repo "${GITHUB_REPOSITORY}" --env acctest-dotcom --app actions "DOTCOM_TEST_COLLABORATOR_TOKEN" --body "${DOTCOM_TEST_COLLABORATOR_TOKEN}"
37+
gh secret set --repo "${GITHUB_REPOSITORY}" --env acctest-ghes --app actions "GHES_TEST_USER_TOKEN" --body "${GHES_TEST_USER_TOKEN}"

0 commit comments

Comments
 (0)