Skip to content

Commit d4812a6

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

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/@orb.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,15 @@ 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:
35-
base_revision:
36-
description: |
37-
ID of the first commit to scan. Leave empty to only scan the latest
38-
commit.
32+
number_commits_gh:
33+
description: number of commits in the GitHub event.
3934
type: string
40-
default: ""
41-
revision:
42-
description: ID of the last commit to scan.
35+
number_commits_gl:
36+
description: number of commits in the GitLab event.
4337
type: string
4438
tag:
4539
description: |
@@ -50,7 +44,8 @@ jobs:
5044
docker:
5145
- image: gitguardian/ggshield:<<parameters.tag>>
5246
environment:
53-
CIRCLE_RANGE: <<parameters.base_revision>>...<<parameters.revision>>
47+
CIRCLE_GH_COMMIT_COUNT: <<pipeline.trigger_parameters.github_app.total_commits_count>>
48+
CIRCLE_GL_COMMIT_COUNT: <<pipeline.trigger_parameters.gitlab.total_commits_count>>
5449
steps:
5550
- checkout
56-
- run: ggshield secret scan -v ci
51+
- run: ggshield secret scan -v ci

0 commit comments

Comments
 (0)