Skip to content

Commit 46cc9e1

Browse files
committed
Improve self-test CLI to auto-remove host trailing slash
1 parent c409095 commit 46cc9e1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/gitguardian.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: GitGuardian scan
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
scanning:
7+
name: GitGuardian scan
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0 # fetch all history so multiple commits can be scanned
14+
- name: GitGuardian scan
15+
uses: GitGuardian/ggshield-action@master
16+
env:
17+
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
18+
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
19+
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
20+
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
21+
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}

0 commit comments

Comments
 (0)