diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 62e32d57f..f411116b7 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -25,6 +25,6 @@ jobs: egress-policy: audit - name: 'Checkout Repository' - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - name: 'Dependency Review' uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4 diff --git a/.github/workflows/netperf.yml b/.github/workflows/netperf.yml index ce3096eb7..ea92e548e 100644 --- a/.github/workflows/netperf.yml +++ b/.github/workflows/netperf.yml @@ -53,13 +53,13 @@ jobs: gh run download $run_id --dir netperf --pattern ebpf* --repo microsoft/netperf - name: upload_results_azure_2022_x64 - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: Test-Logs-netperf_azure_2022_x64 path: netperf/ebpf_azure_2022_x64/ebpf.csv - name: upload_results_lab_2022_x64 - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: Test-Logs-netperf_lab_2022_x64 path: netperf/ebpf_lab_2022_x64/ebpf.csv diff --git a/.github/workflows/nuget_update.yaml b/.github/workflows/nuget_update.yaml index f5905cc9d..5761192a8 100644 --- a/.github/workflows/nuget_update.yaml +++ b/.github/workflows/nuget_update.yaml @@ -37,14 +37,14 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 with: # Only check out main repo, not submodules. ref: ${{ github.event.workflow_run.head_branch }} - name: Cache nuget packages - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 env: cache-name: cache-nuget-modules with: diff --git a/.github/workflows/ossar-scan.yml b/.github/workflows/ossar-scan.yml index 9ac672606..46f1dfa20 100644 --- a/.github/workflows/ossar-scan.yml +++ b/.github/workflows/ossar-scan.yml @@ -47,7 +47,7 @@ jobs: paths_ignore: '["**.md", "**/docs/**"]' # Checking out the branch is needed to correctly log security alerts. - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 if: steps.skip_check.outputs.should_skip != 'true' with: # Only check out main repo, not submodules. @@ -81,6 +81,6 @@ jobs: - name: Upload results to Security tab if: steps.skip_check.outputs.should_skip != 'true' - uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 + uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b with: sarif_file: ${{ steps.ossar.outputs.sarifFile }} diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index ee67e0dd0..3998fe321 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -109,7 +109,7 @@ jobs: powershell.exe "echo 'ASAN_WIN_CONTINUE_ON_INTERCEPTION_FAILURE=true' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append" powershell.exe "echo 'VCINSTALLDIR=%VCINSTALLDIR%' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append" - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 if: steps.skip_check.outputs.should_skip != 'true' with: repository: ${{inputs.repository}} @@ -127,7 +127,7 @@ jobs: - name: Initialize CodeQL if: inputs.build_codeql == true && steps.skip_check.outputs.should_skip != 'true' - uses: github/codeql-action/init@461ef6c76dfe95d5c364de2f431ddbd31a417628 + uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b with: languages: 'cpp' @@ -146,7 +146,7 @@ jobs: - name: Cache nuget packages if: steps.skip_check.outputs.should_skip != 'true' - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 env: cache-name: cache-nuget-modules with: @@ -156,7 +156,7 @@ jobs: - name: Cache verifier project # The hash is based on the HEAD of the ebpf-verifier submodule, the Directory.Build.props file, and the build variant. if: steps.skip_check.outputs.should_skip != 'true' - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 env: cache-name: cache-verifier-project with: @@ -229,7 +229,7 @@ jobs: - name: Upload Build Output if: always() && (steps.skip_check.outputs.should_skip != 'true') && (inputs.build_artifact != 'none') - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: ${{inputs.build_artifact}}-${{matrix.configurations}} path: ${{github.workspace}}/build-${{ matrix.configurations }}.zip @@ -237,7 +237,7 @@ jobs: - name: Upload the MSI package if: inputs.build_msi == true - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: ebpf-for-windows - MSI installer (${{inputs.build_artifact}}_${{env.BUILD_CONFIGURATION}}) path: ${{github.workspace}}/${{env.BUILD_PLATFORM}}/${{env.BUILD_CONFIGURATION}}/ebpf-for-windows.msi @@ -249,7 +249,7 @@ jobs: - name: Upload the NuGet package if: inputs.build_nuget == true && matrix.configurations == 'Release' && steps.skip_check.outputs.should_skip != 'true' - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: ebpf-for-windows - NuGet package (${{inputs.build_artifact}}_${{env.BUILD_CONFIGURATION}}) path: ${{github.workspace}}/${{env.BUILD_PLATFORM}}/${{env.BUILD_CONFIGURATION}}/eBPF-for-Windows.*.nupkg @@ -261,7 +261,7 @@ jobs: - name: Upload the NuGet Redist package if: inputs.build_nuget == true && (matrix.configurations == 'Release' || matrix.configurations == 'NativeOnlyRelease') && steps.skip_check.outputs.should_skip != 'true' - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: ebpf-for-windows - NuGet Redist package (${{inputs.build_artifact}}_${{env.BUILD_CONFIGURATION}}) path: ${{github.workspace}}/${{env.BUILD_PLATFORM}}/${{env.BUILD_CONFIGURATION}}/eBPF-for-Windows-Redist.*.nupkg @@ -277,7 +277,7 @@ jobs: - name: Upload any crash dumps # Upload crash dumps even if the workflow failed. if: (success() || failure()) && (steps.skip_check.outputs.should_skip != 'true') && (steps.check_dumps.outputs.files_exists == 'true') - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 id: upload_crash_dumps with: name: Crash-Dumps-${{env.NAME}}-${{env.BUILD_PLATFORM}}-${{env.BUILD_CONFIGURATION}} @@ -286,4 +286,4 @@ jobs: - name: Perform CodeQL Analysis if: inputs.build_codeql == true && steps.skip_check.outputs.should_skip != 'true' - uses: github/codeql-action/analyze@461ef6c76dfe95d5c364de2f431ddbd31a417628 + uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index 5393a381e..7df00cd33 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -100,7 +100,7 @@ jobs: paths_ignore: '["**.md", "**/docs/**"]' # Checking out the branch is needed to gather correct code coverage data. - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # Only check out source code if code coverage is being gathered. if: (inputs.code_coverage == true) && (steps.skip_check.outputs.should_skip != 'true') with: @@ -108,7 +108,7 @@ jobs: ref: ${{ github.event.workflow_run.head_branch }} # Perform shallow checkout for self-hosted runner. - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 if: (inputs.environment == 'ebpf_cicd_tests_ws2019' || inputs.environment == 'ebpf_cicd_tests_ws2022' || inputs.environment == 'ebpf_cicd_perf_ws2022') && (steps.skip_check.outputs.should_skip != 'true') with: ref: ${{ github.event.workflow_run.head_branch }} @@ -123,7 +123,7 @@ jobs: files: .github/workflows/reusable-test.yml # Check out just this file if code hasn't been checked out yet. - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 if: (steps.check_reusable_test_locally.outputs.files_exists != 'true') && (steps.skip_check.outputs.should_skip != 'true') with: sparse-checkout: | @@ -142,7 +142,7 @@ jobs: # Add cache entry for any choco packages that are installed. # The cache key is based on the hash of this file so if any choco packages are added or removed, the cache will be invalidated. if: (inputs.gather_dumps == true) && (steps.skip_check.outputs.should_skip != 'true') - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 env: cache-name: cache-choco-packages with: @@ -321,7 +321,7 @@ jobs: - name: Upload Report to Codecov attempt 1 if: (steps.skip_check.outputs.should_skip != 'true') && (steps.check_coverage.outputs.files_exists == 'true') - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 id: upload_code_coverage_report_1 continue-on-error: true with: @@ -336,7 +336,7 @@ jobs: - name: Upload Report to Codecov attempt 2 if: (steps.skip_check.outputs.should_skip != 'true') && (steps.upload_code_coverage_report_1.outcome == 'failure') - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 id: upload_code_coverage_report_2 continue-on-error: true with: @@ -351,7 +351,7 @@ jobs: - name: Upload Report to Codecov attempt 3 if: (steps.skip_check.outputs.should_skip != 'true') && (steps.upload_code_coverage_report_2.outcome == 'failure') - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 id: upload_code_coverage_report_3 continue-on-error: true with: @@ -366,7 +366,7 @@ jobs: - name: Upload Report to Codecov attempt 4 if: (steps.skip_check.outputs.should_skip != 'true') && (steps.upload_code_coverage_report_3.outcome == 'failure') - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 id: upload_code_coverage_report_4 continue-on-error: true with: @@ -408,7 +408,7 @@ jobs: - name: Upload any crash dumps # Upload crash dumps even if the workflow failed. if: always() && (steps.skip_check.outputs.should_skip != 'true') && (steps.check_dumps.outputs.files_exists == 'true') && (inputs.gather_dumps == true) - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 id: upload_crash_dumps with: name: Crash-Dumps-${{env.NAME}}-${{env.BUILD_PLATFORM}}-${{env.BUILD_CONFIGURATION}} @@ -427,7 +427,7 @@ jobs: # Upload test logs even if the workflow failed. if: (success() || failure()) && (steps.skip_check.outputs.should_skip != 'true') && (steps.check_logs.outputs.files_exists == 'true') id: upload_logs - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 continue-on-error: true with: name: Test-Logs-${{env.NAME}}-${{env.BUILD_PLATFORM}}-${{env.BUILD_CONFIGURATION}} @@ -447,7 +447,7 @@ jobs: if: (success() || failure()) && (steps.skip_check.outputs.should_skip != 'true') && (steps.check_artifacts.outputs.files_exists == 'true') id: upload_artifacts continue-on-error: true - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: Artifacts-${{env.NAME}}-${{env.BUILD_PLATFORM}}-${{env.BUILD_CONFIGURATION}} path: ${{github.workspace}}\${{env.BUILD_PLATFORM}}\${{env.BUILD_CONFIGURATION}}\Artifacts diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 3a9b00920..a22e42c8d 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -45,7 +45,7 @@ jobs: - name: "Checkout code" if: github.ref_name == 'main' - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 with: persist-credentials: false @@ -67,7 +67,7 @@ jobs: # Upload the results as artifacts (optional). - name: "Upload artifact" if: github.ref_name == 'main' - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: SARIF file path: results.sarif @@ -76,6 +76,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" if: github.ref_name == 'main' - uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 + uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b with: sarif_file: results.sarif diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 4cfe0929a..8ca220eb0 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -41,7 +41,7 @@ jobs: run: | sudo apt install doxygen - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 - name: Clone docs run: | diff --git a/.github/workflows/upload-perf-results.yml b/.github/workflows/upload-perf-results.yml index 2e534aa2a..6643165c2 100644 --- a/.github/workflows/upload-perf-results.yml +++ b/.github/workflows/upload-perf-results.yml @@ -65,7 +65,7 @@ jobs: # Grab the output from the results directory and upload it as an artifact to debug failures. - name: Upload data as artifacts for debugging - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 + uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 with: name: Test-Results-${{inputs.result_artifact}} path: ${{github.workspace}}/results