Skip to content

Commit d923b2b

Browse files
committed
NV-4462 Point the demo scan at the javaspringvulny target
The workflow hardcoded NIGHTVISION_TARGET/NIGHTVISION_AUTH as javaspringvulny-api, but the demo account's target and recorded auth are named javaspringvulny (in the Default project). Rename both env vars so the scan resolves the target and its auth. The NIGHTVISION_TOKEN secret must be a token for the account that owns this target.
1 parent 7687112 commit d923b2b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/nightvision.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
## SETUP
22

33
## Run before activating pipeline
4-
# nightvision app create javaspringvulny-api
5-
# nightvision target create javaspringvulny-api https://127.0.0.1:9000 --type api
6-
# nightvision auth playwright create javaspringvulny-api https://127.0.0.1:9000
4+
# nightvision app create javaspringvulny
5+
# nightvision target create javaspringvulny https://127.0.0.1:9000 --type api
6+
# nightvision auth playwright create javaspringvulny https://127.0.0.1:9000
77

88
## Optional steps can be preformed locally or in the pipeline
9-
# nightvision swagger extract ./ -t javaspringvulny-api --lang spring
10-
# nightvision scan javaspringvulny-api -a javaspringvulny-api --auth javaspringvulny-api
9+
# nightvision swagger extract ./ -t javaspringvulny --lang spring
10+
# nightvision scan javaspringvulny -a javaspringvulny --auth javaspringvulny
1111

1212
name: Test Case - Java Spring App
1313

@@ -35,8 +35,8 @@ on:
3535

3636
env:
3737
NIGHTVISION_TOKEN: ${{ secrets.NIGHTVISION_TOKEN }}
38-
NIGHTVISION_TARGET: javaspringvulny-api
39-
NIGHTVISION_AUTH: javaspringvulny-api
38+
NIGHTVISION_TARGET: javaspringvulny
39+
NIGHTVISION_AUTH: javaspringvulny
4040

4141
jobs:
4242
test:

0 commit comments

Comments
 (0)