Skip to content

Commit de2c348

Browse files
committed
Updated checkout version in gitleaks.yaml
1 parent 54b2b9e commit de2c348

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Secret Value found!
2-
1+
name: Secret Value found!!
32
on:
43
push:
54
public:
@@ -9,7 +8,7 @@ jobs:
98
runs-on: ubuntu-latest
109
steps:
1110
- name: Checkout
12-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4.2.2
1312
- name: Install the gitleaks
1413
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
1514
shell: pwsh
@@ -22,20 +21,24 @@ jobs:
2221
continue-on-error: true
2322
- name: Setup NuGet.exe
2423
if: steps.gitleaks.outcome != 'success'
25-
uses: nuget/setup-nuget@v1
24+
uses: nuget/setup-nuget@v2
2625
with:
2726
nuget-version: latest
28-
- name: Install the dotnet
27+
- name: Install Mono
2928
if: steps.gitleaks.outcome != 'success'
30-
uses: actions/setup-dotnet@v3
31-
with:
32-
dotnet-version: '3.1.x'
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
3337
- name: Install the report tool packages
3438
if: steps.gitleaks.outcome != 'success'
3539
run: |
36-
40+
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
3741
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
38-
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1
39-
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
40-
exit 1
41-
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)