Skip to content

Commit

Permalink
add revoke token github action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschoonover committed Nov 5, 2023
1 parent 4f749bb commit e683ccd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/local-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,36 @@ jobs:
echo
cat secrets.json
jq -c . < secrets.json
revoke-token:
name: revoke-token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '16.14.0'

- name: NPM Install
run: npm ci

- name: NPM Build
run: npm run build

- name: Setup Vault
run: node ./integrationTests/e2e/setup.js
env:
VAULT_HOST: localhost
VAULT_PORT: 8200

- name: Import Secrets
id: import-secrets
# use the local changes
uses: ./
# run against a specific version of vault-action
# uses: hashicorp/[email protected]
with:
url: http://localhost:8200
method: token
token: testtoken
revokeToken: true

0 comments on commit e683ccd

Please sign in to comment.