Skip to content

Commit

Permalink
Update secret.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss authored Feb 19, 2024
1 parent f2ba8e8 commit 44a4609
Showing 1 changed file with 72 additions and 60 deletions.
132 changes: 72 additions & 60 deletions .github/workflows/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,67 +7,79 @@ on:
workflow_dispatch:

jobs:
gitleaks:
name: Gitleaks
trufflehog-ml:
name: TruffleHog from MegaLinter
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Scan with Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
truffle:
name: TruffleHog
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Scan with TruffleHog
uses: trufflesecurity/trufflehog@main
with:
base: ""
head: ${{ github.ref_name }}
extra_args: --no-verification
truffle-install:
name: TruffleHog Installation
runs-on: Ubnuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name : Installing secret-scanning tool
run : |
pip3 install truffleHog
truffleHog --regex --entropy=False .
truffle-enterprise:
name: TruffleHog Enterprise
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: Scan with TruffleHog Enterprise
uses: trufflesecurity/TruffleHog-Enterprise-Github-Action@main
with:
args: --fail-verified ${{ github.event.repository.default_branch }} HEAD
truffle-cli:
name: TruffleHog CLI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@add-actions-cli-switch
continue-on-error: true
with:
path: ./
base: "${{ github.event.repository.default_branch }}"
head: HEAD
extra_args: --debug --only-verified 
- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1
- name: Lint YAML
uses: oxsecurity/megalinter/flavors/ci_light@latest

Check failure on line 21 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

21:1 [trailing-spaces] trailing spaces
# gitleaks:

Check warning on line 22 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

22:3 [comments-indentation] comment not indented like content
# name: Gitleaks
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v4
# - name: Scan with Gitleaks
# uses: gitleaks/gitleaks-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# truffle:
# name: TruffleHog
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v4
# - name: Scan with TruffleHog
# uses: trufflesecurity/trufflehog@main
# with:
# base: ""
# head: ${{ github.ref_name }}
# extra_args: --no-verification
# truffle-install:
# name: TruffleHog Installation
# runs-on: Ubnuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name : Installing secret-scanning tool
# run : |
# pip3 install truffleHog
# truffleHog --regex --entropy=False .
# truffle-enterprise:
# name: TruffleHog Enterprise
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0 # fetch all history so multiple commits can be scanned
# - name: Scan with TruffleHog Enterprise
# uses: trufflesecurity/TruffleHog-Enterprise-Github-Action@main
# with:
# args: --fail-verified ${{ github.event.repository.default_branch }} HEAD
# truffle-cli:
# name: TruffleHog CLI
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0 # fetch all history so multiple commits can be scanned
# - name: TruffleHog OSS

Check failure on line 74 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

74:31 [trailing-spaces] trailing spaces
# id: trufflehog

Check failure on line 75 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

75:25 [trailing-spaces] trailing spaces
# uses: trufflesecurity/trufflehog@add-actions-cli-switch

Check failure on line 76 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

76:66 [trailing-spaces] trailing spaces
# continue-on-error: true

Check failure on line 77 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

77:34 [trailing-spaces] trailing spaces
# with:

Check failure on line 78 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

78:16 [trailing-spaces] trailing spaces
# path: ./

Check failure on line 79 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

79:21 [trailing-spaces] trailing spaces
# base: "${{ github.event.repository.default_branch }}"

Check failure on line 80 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

80:66 [trailing-spaces] trailing spaces
# head: HEAD

Check failure on line 81 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

81:23 [trailing-spaces] trailing spaces
# extra_args: --debug --only-verified 
# - name: Scan Results Status

Check failure on line 83 in .github/workflows/secret.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog from MegaLinter

83:36 [trailing-spaces] trailing spaces
# if: steps.trufflehog.outcome == 'failure'
# run: exit 1

0 comments on commit 44a4609

Please sign in to comment.