Skip to content

Commit 75350f6

Browse files
committed
modify env var passed to ggshield to get number of commits in push event
1 parent 9df2045 commit 75350f6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/@orb.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ examples:
2525
jobs:
2626
- ggshield/scan:
2727
name: ggshield-scan # best practice is to name each orb job
28-
base_revision: <<pipeline.git.base_revision>>
29-
revision: <<pipeline.git.revision>>
30-
3128

3229
jobs:
3330
scan:
3431
parameters:
32+
number_commits_gh:
33+
description: number of commits in the GitHub event.
34+
type: string
35+
number_commits_gl:
36+
description: number of commits in the GitLab event.
37+
type: string
3538
base_revision:
3639
description: |
3740
ID of the first commit to scan. Leave empty to only scan the latest
@@ -50,7 +53,8 @@ jobs:
5053
docker:
5154
- image: gitguardian/ggshield:<<parameters.tag>>
5255
environment:
53-
CIRCLE_RANGE: <<parameters.base_revision>>...<<parameters.revision>>
56+
CIRCLE_GH_COMMIT_COUNT: <<pipeline.trigger_parameters.github_app.total_commits_count>>
57+
CIRCLE_GL_COMMIT_COUNT: <<pipeline.trigger_parameters.gitlab.total_commits_count>>
5458
steps:
5559
- checkout
5660
- run: ggshield secret scan -v ci

0 commit comments

Comments
 (0)