Skip to content

Commit

Permalink
fix(custom-gitguardian): error invalid token header hyperledger-cacti…
Browse files Browse the repository at this point in the history
…#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
ruzell22 committed Apr 13, 2023
1 parent 48a4133 commit 39d2d62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitguardian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exit-zero: false # default: false

verbose: false # default: false

instance: https://api.gitguardian.com/
instance: https://dashboard.gitguardian.com/

# Maximum commits to scan in a hook.
max-commits-for-hook: 50 # default: 50
Expand Down
21 changes: 5 additions & 16 deletions .github/workflows/gg-shield-action.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
name: GitGuardian scan

on:
push:
pull_request:
# Publish `main` as Docker `latest` image.
branches:
- main

# Publish `v1.2.3` tags as releases.
tags:
- v*
on: [push, pull_request]

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
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 }}
GITGUARDIAN_API_KEY: eb6f8dFdab31DfCdd3c659dBcF3c79Ccfdc77DDAAcBD9585E06FAD5EC3A3daad68c5Bf7

0 comments on commit 39d2d62

Please sign in to comment.