Skip to content

Commit

Permalink
Fix roxctl central whoami step.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaus67 committed Nov 3, 2023
1 parent 8920414 commit 7a7daae
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
paths-ignore:
- 'dist/**'
schedule:
- cron: '0 5 * * 0'
- cron: '0 5 * * 0'

jobs:
e2e:
Expand Down Expand Up @@ -74,15 +74,18 @@ jobs:
- name: Configure M2M configuration
run: |
curl https://localhost:8000/v1/auth/m2m -k -d '{"{"config": {"type": "GITHUB_ACTIONS", "tokenExpirationDuration": "5m", "mappings":[{"key":"sub","valueExpression":"repo:stackrox/central-login.*", "role":"Analyst"}]}}"}'
curl -u admin:${ROX_PASSWORD} \
https://localhost:8000/v1/auth/m2m \
-k -d '{"config": {"type": "GITHUB_ACTIONS", "tokenExpirationDuration": "5m", "mappings":[{"key":"sub","valueExpression":"repo:stackrox/central-login.*", "role":"Analyst"}]}}'
- name: Run Central-login action
uses: ./
with:
endpoint: https://localhost:8000
skip-tls-verify: true

- name: Run roxctl central whoami
uses: quay.io/stackrox-io/roxctl:latest
with:
args: central whoami
- name: Fetch roxctl and run roxctl central whoami
run: |
curl -k -u admin:${ROX_PASSWORD} https://localhost:8000/api/cli/download/roxctl-linux --output ./roxctl
chmod +x ./roxctl
./roxctl central whoami

0 comments on commit 7a7daae

Please sign in to comment.