🎉feat: 更新包的配置&完善Github Actions&删除已弃用文件等 #1
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
name: Gitleaks Scan | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
gitleaks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run Gitleaks | |
uses: gitleaks/gitleaks-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
fail-on-error: true | |
- name: Exit If Gitleaks Check Failed | |
if: failure() | |
run: | | |
echo "Gitleaks Check Failed" | |
exit 1 |