-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a35a8c8
commit e19d7ab
Showing
5 changed files
with
22 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
name: CI | ||
name: CI/CD | ||
|
||
on: push | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -152,8 +156,7 @@ jobs: | |
echo "EOF" >> $GITHUB_ENV | ||
- name: Send Slack Notification | ||
if: ${{ env.DIFF_OUTPUT != '' }} | ||
# if: ${{ github.ref == 'refs/heads/master' && env.DIFF_OUTPUT != '' }} | ||
if: ${{ github.ref == 'refs/heads/master' && env.DIFF_OUTPUT != '' }} | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
|
File renamed without changes.
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
name: Trivy security scan | ||
name: Trivy secrets scan | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
trivy-secrets-scan: | ||
runs-on: ubuntu-latest | ||
|
@@ -16,4 +20,4 @@ jobs: | |
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'fs' | ||
trivy-config: .trivy/trivy.yaml | ||
trivy-config: .trivy/trivy.yaml |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
name: Trufflehog security scan | ||
name: Trufflehog secrets scan | ||
|
||
on: | ||
# schedule: | ||
# - cron: '0 10 * * *' | ||
push: | ||
branches-ignore: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
trufflehog-vulnerability-detection: | ||
runs-on: ubuntu-latest | ||
|
@@ -35,38 +37,3 @@ jobs: | |
echo "Secrets were found by Trufflehog!" | ||
exit 1 # This will fail the workflow | ||
fi | ||
# - name: Send Slack Notification | ||
# if: github.event.schedule == '0 10 * * *' | ||
# uses: slackapi/[email protected] | ||
# with: | ||
# payload: | | ||
# { | ||
# "text": "Trufflehog scan completed for ${{ github.repository }}", | ||
# "attachments": [ | ||
# { | ||
# "pretext": "Trufflehog Scan Results", | ||
# "color": "${{ steps.trufflehog_scan.outcome == 'success' && 'good' || 'danger' }}", | ||
# "fields": [ | ||
# { | ||
# "title": "Outcome", | ||
# "value": "${{ steps.trufflehog_scan.outcome == 'success' && 'No secrets found' || 'Secrets were found' }}", | ||
# "short": true | ||
# }, | ||
# { | ||
# "title": "Branch", | ||
# "value": "${{ github.ref }}", | ||
# "short": true | ||
# }, | ||
# { | ||
# "title": "Commit", | ||
# "value": "${{ github.sha }}", | ||
# "short": true | ||
# } | ||
# ] | ||
# } | ||
# ] | ||
# } | ||
# env: | ||
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |
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