Skip to content

Commit

Permalink
docs(gitlab): add missing env vars to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger committed Oct 25, 2023
1 parent 9a61366 commit 12a8777
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guides/bearer-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ bearer:
image:
name: bearer/bearer
entrypoint: [ "" ]
variables:
SHA: $CI_COMMIT_SHA
CURRENT_BRANCH: $CI_COMMIT_REF_NAME
DEFAULT_BRANCH: $CI_DEFAULT_BRANCH
script: bearer scan . --api-key=$BEARER_TOKEN
```

Expand Down
7 changes: 7 additions & 0 deletions docs/guides/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ bearer:
image:
name: bearer/bearer
entrypoint: [ "" ]
variables:
SHA: $CI_COMMIT_SHA
CURRENT_BRANCH: $CI_COMMIT_REF_NAME
DEFAULT_BRANCH: $CI_DEFAULT_BRANCH
script:
- bearer scan . --format gitlab-sast --output gl-sast-report.json
Expand All @@ -60,6 +64,9 @@ bearer:
name: bearer/bearer
entrypoint: [ "" ]
variables:
SHA: $CI_COMMIT_SHA
CURRENT_BRANCH: $CI_COMMIT_REF_NAME
DEFAULT_BRANCH: $CI_DEFAULT_BRANCH
DIFF_BASE_BRANCH: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
DIFF_BASE_COMMIT: $CI_MERGE_REQUEST_DIFF_BASE_SHA
script: bearer scan .
Expand Down

0 comments on commit 12a8777

Please sign in to comment.