File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,18 +37,18 @@ jobs:
3737 - name : Checkout
3838 uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3939
40- - name : Check secrets
41- env :
42- INPUT_ALLOWED_SECRETS : ${{ vars.DOTCOM_ACCEPTANCE_TESTS_ALLOWED_SECRETS || 'DOTCOM_TEST_USER_TOKEN' }}
43- INPUT_SECRETS : ${{ toJSON(secrets) }}
44- run : |
45- set -eou pipefail
40+ # - name: Check secrets
41+ # env:
42+ # INPUT_ALLOWED_SECRETS: ${{ vars.DOTCOM_ACCEPTANCE_TESTS_ALLOWED_SECRETS || 'DOTCOM_TEST_USER_TOKEN' }}
43+ # INPUT_SECRETS: ${{ toJSON(secrets) }}
44+ # run: |
45+ # set -eou pipefail
4646
47- secret_keys="$(jq --raw-output --compact-output '[. | keys[] | select(test("^(?:(?:TEST)|(?:test))_") | not)] | sort | join(",")' <<<"${INPUT_SECRETS}")"
48- if [[ "${secret_keys}" != "${INPUT_ALLOWED_SECRETS}" ]]; then
49- echo "::error::Too many or too few secrets configured: ${secret_keys}"
50- exit 1
51- fi
47+ # secret_keys="$(jq --raw-output --compact-output '[. | keys[] | select(test("^(?:(?:ACTIONS)|(?:actions)|(?:GITHUB)|(?:github)| (?:TEST)|(?:test))_") | not)] | sort | join(",")' <<<"${INPUT_SECRETS}")"
48+ # if [[ "${secret_keys}" != "${INPUT_ALLOWED_SECRETS}" ]]; then
49+ # echo "::error::Too many or too few secrets configured: ${secret_keys}"
50+ # exit 1
51+ # fi
5252
5353 - name : Check credentials
5454 id : credentials
7575 env :
7676 TF_ACC : " 1"
7777 TF_LOG : INFO
78+ GITHUB_TOKEN : ${{ steps.credentials.outputs.token }}
7879 GITHUB_BASE_URL : https://api.github.com/
7980 GITHUB_TEST_TYPE : ${{ matrix.mode }}
8081 GITHUB_OWNER : ${{ (matrix.mode == 'individual' && 'github-terraform-test-user') || (matrix.mode == 'organization' && 'terraformtesting') || '' }}
Original file line number Diff line number Diff line change 3636 run : |
3737 set -eou pipefail
3838
39- secret_keys="$(jq --raw-output --compact-output '[. | keys[] | select(test("^(?:(?:TEST)|(?:test))_") | not)] | sort | join(",")' <<<"${INPUT_SECRETS}")"
39+ secret_keys="$(jq --raw-output --compact-output '[. | keys[] | select(test("^(?:(?:ACTIONS)|(?:actions)|(?:GITHUB)|(?:github)|(?: TEST)|(?:test))_") | not)] | sort | join(",")' <<<"${INPUT_SECRETS}")"
4040 if [[ "${secret_keys}" != "${INPUT_ALLOWED_SECRETS}" ]]; then
4141 echo "::error::Too many or too few secrets configured: ${secret_keys}"
4242 exit 1
8989 env :
9090 TF_ACC : " 1"
9191 TF_LOG : INFO
92+ GITHUB_TOKEN : ${{ steps.credentials.outputs.token }}
9293 GITHUB_BASE_URL : ${{ steps.server.outputs.address }}
9394 GITHUB_TEST_TYPE : enterprise
9495 GITHUB_OWNER : terraformtesting
You can’t perform that action at this time.
0 commit comments