Skip to content

Commit

Permalink
chore(ci): use 1pass to access konnect PAT for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Dec 2, 2024
1 parent a44f743 commit deb42cc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/_kongintegration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,24 @@ jobs:

- run: echo "GOTESTSUM_JUNITFILE=kongintegration-${{ matrix.name }}-tests.xml" >> $GITHUB_ENV

- uses: 1password/load-secrets-action@v2
id: konnect-pat
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_TEAM_K8S_PUBLIC }}
PAT: 'op://team-k8s-public/Team K8S Konnect testing account - KIC tests token/token'

- if: ${{ steps.konnect-pat.outputs.PAT == '' }}
run: exit 1

- name: run kong integration tests
run: make test.kongintegration
env:
MISE_VERBOSE: 1
MISE_DEBUG: 1
GOTESTSUM_JUNITFILE: ${{ env.GOTESTSUM_JUNITFILE }}
TEST_KONG_KONNECT_ACCESS_TOKEN: ${{ secrets.K8S_TEAM_KONNECT_ACCESS_TOKEN }}
KONG_TEST_KONNECT_ACCESS_TOKEN: ${{ steps.konnect-pat.outputs.PAT }}
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
TEST_KONG_ENTERPRISE: ${{ matrix.enterprise }}

Expand Down

0 comments on commit deb42cc

Please sign in to comment.