Skip to content

Commit

Permalink
Merge pull request #6 from GitGuardian/jeremy/-/lint-pack-ci-jobs
Browse files Browse the repository at this point in the history
feat(ci): add lint and pack CI jobs
  • Loading branch information
jeremyds authored Mar 29, 2022
2 parents 98947e3 + b12444b commit 0b9816d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ version: 2.1

orbs:
ggshield: gitguardian/ggshield@volatile
orb-tools: circleci/orb-tools@volatile


workflows:
main:
jobs:
- orb-tools/lint
- orb-tools/pack
- ggshield/scan:
name: ggshield-scan # best practice is to name each orb job
base_revision: <<pipeline.git.base_revision>>
Expand Down
19 changes: 13 additions & 6 deletions src/@orb.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

version: 2.1

description: >
Expand All @@ -11,17 +13,18 @@ display:
examples:
scan:
description: |
Scan commits when they land on VCS. Do not forget to add an environment variable
GITGUARDIAN_API_KEY with your API Key in the project settings
Scan commits when they land on VCS. Do not forget to add an environment
variable GITGUARDIAN_API_KEY with your API Key in the project settings
usage:
version: 2.1
orbs:
ggshield: gitguardian/ggshield@x.y # This version number refers to the version of the orb
# This version number refers to the version of the orb
ggshield: gitguardian/ggshield@x.y
workflows:
scan_my_commits:
jobs:
- ggshield/scan:
name: ggshield-scan # best practice is to name each orb job
name: ggshield-scan # best practice is to name each orb job
base_revision: <<pipeline.git.base_revision>>
revision: <<pipeline.git.revision>>

Expand All @@ -30,14 +33,18 @@ jobs:
scan:
parameters:
base_revision:
description: ID of the first commit to scan. Leave empty to only scan the latest commit.
description: |
ID of the first commit to scan. Leave empty to only scan the latest
commit.
type: string
default: ""
revision:
description: ID of the last commit to scan.
type: string
tag:
description: Pick a specific gitguardian/ggshield image variant: https://hub.docker.com/r/gitguardian/ggshield/tags
description: |
Pick a specific gitguardian/ggshield image variant:
https://hub.docker.com/r/gitguardian/ggshield/tags
default: latest
type: string
docker:
Expand Down

0 comments on commit 0b9816d

Please sign in to comment.