Skip to content

Commit adcf8a5

Browse files
Update secret-scanning.yml
actions/setup-dotnet@v3 is not allowed to be used in theangrytech-git/MSDO. Actions in this workflow must be: within a repository owned by theangrytech-git. Added .net 6.0.415 (LTS) to run locally in the $HOME directory to get around forking the setup-dotnet repo
1 parent 46ed9de commit adcf8a5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/secret-scanning.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ jobs:
2424
- name: Set tool to only run secret scan
2525
run: echo "TOOLS=credscan" >> $GITHUB_ENV
2626

27-
- name: Setup .NET 6 SDK
28-
uses: actions/setup-dotnet@v3
29-
with:
30-
dotnet-version: 6.0.x
27+
- name: Install .NET 6 SDK
28+
run: |
29+
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
30+
chmod +x dotnet-install.sh
31+
./dotnet-install.sh --version 6.0.415 --install-dir "$HOME/dotnet"
32+
echo "DOTNET_ROOT=$HOME/dotnet" >> $GITHUB_ENV
33+
echo "$HOME/dotnet" >> $GITHUB_PATH
3134
3235
- name: Run Microsoft Security DevOps - Secret Scan
3336
uses: theangrytech-git/security-devops-action@main

0 commit comments

Comments
 (0)