Skip to content

Commit 4e4d9a0

Browse files
committed
ci(workflows): [ci] add gitguardian job
- https://github.com/GitGuardian/ggshield-action - https://docs.gitguardian.com/ggshield-docs/integrations/cicd-integrations/github-actions Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent ab92097 commit 4e4d9a0

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dessant
99
dohm
1010
esbuild
1111
fbca
12+
ggshield
1213
gpgsign
1314
hmarr
1415
iife

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push
1111
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
1212
# - https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions
13+
# - https://github.com/GitGuardian/ggshield-action
1314
# - https://github.com/actions/cache
1415
# - https://github.com/actions/cache/discussions/650
1516
# - https://github.com/actions/checkout
@@ -81,6 +82,27 @@ jobs:
8182
- id: version-typescript
8283
name: Get TypeScript version
8384
run: echo "result=$(jq .devDependencies.typescript package.json -r)" >> $GITHUB_OUTPUT
85+
gitguardian:
86+
needs: metadata
87+
runs-on: ubuntu-latest
88+
steps:
89+
- id: checkout
90+
name: Checkout ${{ env.REF }}
91+
uses: actions/checkout@v3.3.0
92+
with:
93+
fetch-depth: 0
94+
ref: ${{ env.REF }}
95+
- id: scan
96+
name: Scan commits for secrets and policy breaches
97+
uses: GitGuardian/ggshield-action@master
98+
with:
99+
args: --all-policies --show-secrets --verbose
100+
env:
101+
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
102+
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
103+
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
104+
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
105+
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
84106
format:
85107
needs: metadata
86108
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)