From ded4e81e61ff6182f30b23893401e702e10b7a26 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Wed, 19 Aug 2026 10:45:38 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/sdl-compliance-pipeline.yml | 8 ++++---- 2 files changed, 15 insertions(+), 4 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/sdl-compliance-pipeline.yml b/.github/workflows/sdl-compliance-pipeline.yml index 942c358..f39d5ad 100644 --- a/.github/workflows/sdl-compliance-pipeline.yml +++ b/.github/workflows/sdl-compliance-pipeline.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -47,7 +47,7 @@ jobs: # https://github.com/marketplace/actions/setup-msbuild#specifying-msbuild-architecture-optional - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v2 + uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0 with: msbuild-architecture: ${{ matrix.build-platform }} # Default is x86. Options are x86, x64, and arm64 @@ -64,7 +64,7 @@ jobs: # https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning # https://github.com/github/codeql-action/blob/main/init/action.yml - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@f3712979fa5f215279b101dd0a2e3bdfb4353324 # v3.37.7 with: languages: ${{ matrix.language }} queries: security-and-quality # Default is "security-extended" @@ -87,7 +87,7 @@ jobs: # Performs code analysis and uploads results to provided output path. # We therefore do not need to use github/codeql-action/upload-sarif@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@f3712979fa5f215279b101dd0a2e3bdfb4353324 # v3.37.7 with: # The path of the directory in which to save the SARIF results (../results/cpp.sarif) output: ${{ env.CodeQLResultsDir }}