diff --git a/docs/guides/bearer-cloud.md b/docs/guides/bearer-cloud.md index 837b9ea40..aa62648d7 100644 --- a/docs/guides/bearer-cloud.md +++ b/docs/guides/bearer-cloud.md @@ -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 ``` diff --git a/docs/guides/gitlab.md b/docs/guides/gitlab.md index 4fc506054..6998ff7d8 100644 --- a/docs/guides/gitlab.md +++ b/docs/guides/gitlab.md @@ -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 @@ -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 .