Skip to content

fix: vulerabilities of mui drwaer #114

fix: vulerabilities of mui drwaer

fix: vulerabilities of mui drwaer #114

name: Detect token via gitleaks
on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop
jobs:
scan:
permissions:
contents: write
pull-requests: write
checks: write
security-events: write
name: gitleaks
runs-on:
labels: [self-hosted, dev-image-builder]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
id: gitleaks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false
# - name: Notify Token Detected
# if: failure() # if: ${{ steps.gitleaks.outputs.exitcode == 1 || steps.gitleaks.outputs.exit-code != 0 }}
# uses: voxmedia/github-action-slack-notify-build@v1
# id: slack-token-notify
# with:
# channel_id: ${{ secrets.SLACK_CHANNEL_ID }}
# status: Token Detected. Check Report at workflow.
# color: warning
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}