-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add truffle hog workflow #529
Closed
RoKrish14
wants to merge
25
commits into
eclipse-tractusx:main
from
RoKrish14:Add-TruffleHog-Workflow
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
481b2b0
Create trufflehog.yml
RoKrish14 1ec9668
Update trufflehog.yml
RoKrish14 0034b74
Update trufflehog.yml
RoKrish14 04339b7
Update trufflehog.yml
RoKrish14 e5d6e65
Update trufflehog.yml
RoKrish14 61f1d05
Update trufflehog.yml
RoKrish14 342b459
Update trufflehog.yml
RoKrish14 ac71e19
Update trufflehog.yml
RoKrish14 b3cb0f7
Update trufflehog.yml
RoKrish14 d4701c5
Update trufflehog.yml
RoKrish14 28df0c1
Update trufflehog.yml
RoKrish14 a7ce628
Update trufflehog.yml
RoKrish14 ce27a29
Update trufflehog.yml
RoKrish14 c61cad2
Update trufflehog.yml
RoKrish14 5e1107b
Update trufflehog.yml
RoKrish14 9e1d53c
Update trufflehog.yml
RoKrish14 65398d4
Update trufflehog.yml
RoKrish14 8c28099
Update trufflehog.yml
RoKrish14 2570d09
Update trufflehog.yml
RoKrish14 3fb84d3
Update trufflehog.yml
RoKrish14 30b8301
Update trufflehog.yml
RoKrish14 13c0019
Update trufflehog.yml
RoKrish14 ab3d027
Update trufflehog.yml
RoKrish14 4b3e3f1
Update trufflehog.yml
RoKrish14 1c6b881
Update trufflehog.yml
RoKrish14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "TruffleHog" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
schedule: | ||
- cron: "0 0 * * *" # Once a day | ||
|
||
workflow_dispatch: | ||
# Trigger manually | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
id-token: write | ||
issues: write | ||
|
||
jobs: | ||
ScanSecrets: | ||
name: Scan secrets | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Ensure full clone for pull request workflows | ||
ref: ${{ github.head_ref }} # Fetch specific branch/commit for pull requests | ||
|
||
- name: TruffleHog OSS | ||
id: trufflehog | ||
uses: trufflesecurity/trufflehog@main | ||
continue-on-error: true | ||
with: | ||
path: ./ # Scan the entire repository | ||
base: "${{ github.event.repository.default_branch }}" # Set base branch for comparison (pull requests) | ||
extra_args: --filter-entropy=4 --results=verified,unknown --debug | ||
|
||
- name: Scan Results Status | ||
if: steps.trufflehog.outcome == 'failure' | ||
run: exit 1 # Set workflow run to failure if TruffleHog finds secrets |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / KICS
Unpinned Actions Full Length Commit SHA Note