From c30d787b401f344c20a7c3878ca0d9d1ac634ad2 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Tue, 8 Sep 2026 15:00:28 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/powershell-pester-test.yml | 6 +++--- .github/workflows/powershell-psscriptanalyzer.yml | 8 ++++---- 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2c48305 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + groups: + github-actions: + patterns: ["*"] + schedule: + interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/powershell-pester-test.yml b/.github/workflows/powershell-pester-test.yml index ff00102..9941101 100644 --- a/.github/workflows/powershell-pester-test.yml +++ b/.github/workflows/powershell-pester-test.yml @@ -19,9 +19,9 @@ jobs: name: pester-unit-tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: dotnet-version: 8.0.x - name: Restore dependencies @@ -34,7 +34,7 @@ jobs: $ErrorActionPreference = "Stop" . "$($ENV:GITHUB_WORKSPACE)/tests/setupTest.ps1" - name: Upload Test Results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: ubuntu-Unit-Tests path: "${{GITHUB.WORKSPACE}}/out/Tests" diff --git a/.github/workflows/powershell-psscriptanalyzer.yml b/.github/workflows/powershell-psscriptanalyzer.yml index 490f7b0..1eb770a 100644 --- a/.github/workflows/powershell-psscriptanalyzer.yml +++ b/.github/workflows/powershell-psscriptanalyzer.yml @@ -28,14 +28,14 @@ jobs: name: PSScriptAnalyzer runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: dotnet-version: 8.0.x - name: Run PSScriptAnalyzer - uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f + uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f # v1.1 with: # Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options. # The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules. @@ -47,6 +47,6 @@ jobs: # Upload the SARIF file generated in the previous step - name: Upload SARIF results file - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@6f5948dfacef28e207b48d0905cf90c03365536d # v3.37.9 with: sarif_file: results.sarif