File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}"
You can’t perform that action at this time.
0 commit comments