Skip to content

Commit c7b9690

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 8fdcb8a commit c7b9690

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dessant
88
dohm
99
esbuild
1010
fbca
11+
ggshield
1112
gpgsign
1213
hmarr
1314
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
@@ -80,6 +81,27 @@ jobs:
8081
- id: version-typescript
8182
name: Get TypeScript version
8283
run: echo "result=$(jq .devDependencies.typescript package.json -r)" >> $GITHUB_OUTPUT
84+
gitguardian:
85+
needs: metadata
86+
runs-on: ubuntu-latest
87+
steps:
88+
- id: checkout
89+
name: Checkout ${{ env.REF }}
90+
uses: actions/checkout@v3.3.0
91+
with:
92+
fetch-depth: 0
93+
ref: ${{ env.REF }}
94+
- id: scan
95+
name: Scan commits for secrets and policy breaches
96+
uses: GitGuardian/ggshield-action@master
97+
with:
98+
args: --all-policies --show-secrets --verbose
99+
env:
100+
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
101+
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
102+
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
103+
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
104+
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
83105
format:
84106
needs: metadata
85107
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)