You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the token output, add as CI secret: `HD_CI_CREDENTIAL`
360
+
Copy the token output, add as an environment variable: `HD_CI_CREDENTIAL`
361
361
362
-
**CI pipeline (headless):** Run `hd scan eol` directly with `HD_CI_CREDENTIAL` set. The CLI exchanges the token for an access token automatically:
362
+
**CI pipeline (headless):** Run `hd scan eol` directly with `HD_CI_CREDENTIAL` set. The CLI exchanges the token for an access token automatically. An explicit `auth login` command is not required when using the CI token.
363
363
364
364
```bash
365
365
export HD_CI_CREDENTIAL="<token>"
366
-
hd scan eol --dir .
366
+
hd scan eol
367
367
```
368
368
369
369
| Secret / Env Var | Purpose |
370
370
|------------------|---------|
371
371
|`HD_CI_CREDENTIAL`| Refresh token from provision; exchanged for access token |
372
372
373
-
#### Local testing
374
-
375
-
Reproduce the CI flow locally:
376
-
377
-
```bash
378
-
export HD_CI_CREDENTIAL="<token-from-provision>"
379
-
hd scan eol --dir /path/to/project
380
-
```
381
-
382
373
#### GitHub Actions (authenticated scan)
383
374
384
375
Add secret `HD_CI_CREDENTIAL` in your repository or organization, then:
@@ -391,7 +382,7 @@ Add secret `HD_CI_CREDENTIAL` in your repository or organization, then:
391
382
- name: Run EOL Scan
392
383
env:
393
384
HD_CI_CREDENTIAL: ${{ secrets.HD_CI_CREDENTIAL }}
394
-
run: npx @herodevs/cli@beta scan eol -s
385
+
run: npx @herodevs/cli scan eol -s
395
386
```
396
387
397
388
#### GitLab CI (authenticated scan)
@@ -404,7 +395,7 @@ eol-scan:
404
395
variables:
405
396
HD_CI_CREDENTIAL: $HD_CI_CREDENTIAL
406
397
script:
407
-
- npx @herodevs/cli@beta scan eol -s
398
+
- npx @herodevs/cli scan eol -s
408
399
artifacts:
409
400
paths:
410
401
- herodevs.report.json
@@ -462,7 +453,7 @@ eol-scan:
462
453
# Entrypoint or base command must be disabled due
463
454
# to GitLab's execution mechanism and run manually
0 commit comments