Update gitleaks.yaml #12
This file contains hidden or 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: Secret Value found!! | |
on: | |
push: | |
public: | |
jobs: | |
scan: | |
name: gitleaks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install the gitleaks | |
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz | |
shell: pwsh | |
- name: Extract the tar file | |
run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz | |
- name: Generate the report | |
id: gitleaks | |
run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json | |
shell: bash | |
continue-on-error: true | |
- name: Setup NuGet.exe | |
if: steps.gitleaks.outcome != 'success' | |
uses: nuget/setup-nuget@v2 | |
with: | |
nuget-version: latest | |
- name: Install Mono | |
if: steps.gitleaks.outcome != 'success' | |
run: | | |
sudo apt update | |
sudo apt install -y mono-complete | |
- name: Install the dotnet SDK to a custom directory | |
if: steps.gitleaks.outcome != 'success' | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/dotnet | |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0 | |
- name: Install the report tool packages | |
if: steps.gitleaks.outcome != 'success' | |
run: | | |
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH | |
nuget install Syncfusion.Email -Source "${{ secrets.NexusFeedLink }}" -ExcludeVersion | |
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0 | |
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }} | |
exit 1 |