Skip to content

Commit d24a0ee

Browse files
Update gitleaks.yaml
1 parent 468e105 commit d24a0ee

File tree

1 file changed

+34
-43
lines changed

1 file changed

+34
-43
lines changed

.github/workflows/gitleaks.yaml

+34-43
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,44 @@
11
name: Secret Value found!!
2-
32
on:
43
push:
54
public:
6-
75
jobs:
86
scan:
97
name: gitleaks
108
runs-on: ubuntu-latest
119
steps:
12-
- name: Checkout
13-
uses: actions/[email protected]
14-
15-
- name: Install the gitleaks
16-
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
17-
shell: pwsh
18-
19-
- name: Extract the tar file
20-
run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz
21-
22-
- name: Generate the report
23-
id: gitleaks
24-
run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json
25-
shell: bash
26-
continue-on-error: true
27-
28-
- name: Setup NuGet.exe
29-
if: steps.gitleaks.outcome != 'success'
30-
uses: nuget/setup-nuget@v2
31-
with:
10+
- name: Checkout
11+
uses: actions/[email protected]
12+
- name: Install the gitleaks
13+
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
14+
shell: pwsh
15+
- name: Extract the tar file
16+
run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz
17+
- name: Generate the report
18+
id: gitleaks
19+
run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json
20+
shell: bash
21+
continue-on-error: true
22+
- name: Setup NuGet.exe
23+
if: steps.gitleaks.outcome != 'success'
24+
uses: nuget/setup-nuget@v2
25+
with:
3226
nuget-version: latest
33-
34-
- name: Install Mono
35-
if: steps.gitleaks.outcome != 'success'
36-
run: |
37-
sudo apt update
38-
sudo apt install -y mono-complete
39-
40-
- name: Install the dotnet SDK to a custom directory
41-
if: steps.gitleaks.outcome != 'success'
42-
run: |
43-
mkdir -p $GITHUB_WORKSPACE/dotnet
44-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0
45-
46-
- name: Install the report tool packages
47-
if: steps.gitleaks.outcome != 'success'
48-
run: |
49-
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
50-
nuget install Syncfusion.Email -Source "${{ secrets.NexusFeedLink }}" -ExcludeVersion
51-
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0
52-
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
53-
exit 1
27+
- name: Install Mono
28+
if: steps.gitleaks.outcome != 'success'
29+
run: |
30+
sudo apt update
31+
sudo apt install -y mono-complete
32+
- name: Install the dotnet SDK to a custom directory
33+
if: steps.gitleaks.outcome != 'success'
34+
run: |
35+
mkdir -p $GITHUB_WORKSPACE/dotnet
36+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0
37+
- name: Install the report tool packages
38+
if: steps.gitleaks.outcome != 'success'
39+
run: |
40+
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
41+
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
42+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0
43+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
44+
exit 1

0 commit comments

Comments
 (0)