forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(custom-gitguardian): error invalid token header hyperledger-cacti…
…#2379 fixes: hyperledger-cacti#2379 related to: hyperledger-cacti#2313 and hyperledger-cacti#1996 This fixes the Invalid token header, no credentials provided error of the custom gitguardian workflow. Signed-off-by: ruzell22 <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,25 +10,28 @@ on: | |
# Publish `v1.2.3` tags as releases. | ||
tags: | ||
- v* | ||
workflow_call: | ||
secrets: | ||
GITGUARDIAN_API_KEY: | ||
description: 'API key for GitGuardian' | ||
required: true | ||
|
||
jobs: | ||
scanning: | ||
name: GitGuardian scan | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.4.0 | ||
uses: actions/checkout@v3.5.1 | ||
with: | ||
fetch-depth: 0 # fetch all history so multiple commits can be scanned | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: GitGuardian scan | ||
uses: GitGuardian/[email protected].4 | ||
uses: GitGuardian/[email protected].5 | ||
with: | ||
args: --show-secrets --exit-zero --all-policies --verbose | ||
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | ||
env: | ||
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }} | ||
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }} | ||
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
GITHUB_DEFAULT_BRANCH: main | ||
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | ||
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} |