Skip to content

Commit 522ea3a

Browse files
committed
revert the changes.
1 parent 0d59037 commit 522ea3a

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4.2.2
11+
uses: actions/checkout@v3
1212
- name: Install the gitleaks
1313
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
1414
shell: pwsh
@@ -21,24 +21,18 @@ jobs:
2121
continue-on-error: true
2222
- name: Setup NuGet.exe
2323
if: steps.gitleaks.outcome != 'success'
24-
uses: nuget/setup-nuget@v2
24+
uses: nuget/setup-nuget@v1
2525
with:
2626
nuget-version: latest
27-
- name: Install Mono
27+
- name: Install the dotnet
2828
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
29+
uses: actions/setup-dotnet@v3
30+
with:
31+
dotnet-version: '3.1.x'
3732
- name: Install the report tool packages
3833
if: steps.gitleaks.outcome != 'success'
3934
run: |
40-
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
4135
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 }}
36+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1
37+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
4438
exit 1

0 commit comments

Comments
 (0)