Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e1289cb

Browse files
committedOct 12, 2023
modify env var passed to ggshield to get number of commits in push event
1 parent 9df2045 commit e1289cb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
 

‎src/@orb.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ 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-
28+
number_commits_github: <<pipeline.trigger_parameters.github_app.total_commits_count>>
29+
number_commits_gitlab: <<pipeline.trigger_parameters.gitlab.total_commits_count>>
3130

3231
jobs:
3332
scan:
3433
parameters:
34+
number_commits_github:
35+
description: number of commits in the GitHub event.
36+
type: string
37+
number_commits_gitlab:
38+
description: number of commits in the GitLab event.
39+
type: string
3540
base_revision:
3641
description: |
3742
ID of the first commit to scan. Leave empty to only scan the latest
@@ -50,7 +55,8 @@ jobs:
5055
docker:
5156
- image: gitguardian/ggshield:<<parameters.tag>>
5257
environment:
53-
CIRCLE_RANGE: <<parameters.base_revision>>...<<parameters.revision>>
58+
NUMBER_COMMITS_GITHUB: <<parameters.number_commits_github>>
59+
NUMBER_COMMITS_GITLAB: <<parameters.number_commits_gitlab>>
5460
steps:
5561
- checkout
5662
- run: ggshield secret scan -v ci

0 commit comments

Comments
 (0)
Please sign in to comment.