diff --git a/.github/workflows/dotnet-coverage.yml b/.github/workflows/dotnet-coverage.yml index b813875..87f3d2d 100644 --- a/.github/workflows/dotnet-coverage.yml +++ b/.github/workflows/dotnet-coverage.yml @@ -35,6 +35,6 @@ jobs: - name: Test run: dotnet test --no-build --verbosity normal - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v5.4.3 + uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index 06548e0..4c07b10 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -27,7 +27,7 @@ jobs: - name: Restore dependencies run: dotnet restore algorithm_exercises_csharp.sln - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/dotnet@master + uses: snyk/actions/dotnet@b98d498629f1c368650224d6d212bf7dfa89e4bf continue-on-error: true # To make sure that SARIF upload gets called env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index eb70b93..c933278 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -51,7 +51,7 @@ jobs: run: | .\.sonar\scanner\dotnet-sonarscanner begin ` /k:"sir-gon_algorithm-exercises-csharp" ` - /o:"sir-gon" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" ` + /o:"sir-gon" /d:sonar.token="${{ env.SONAR_TOKEN }}" ` /d:sonar.host.url="https://sonarcloud.io" ` /d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml @@ -59,4 +59,4 @@ jobs: dotnet build --no-restore dotnet test --no-build --verbosity normal .\.sonar\scanner\dotnet-sonarscanner end ` - /d:sonar.token="${{ secrets.SONAR_TOKEN }}" + /d:sonar.token="${{ env.SONAR_TOKEN }}"