From eb38793175812fa65e9f63671db1697908622cb7 Mon Sep 17 00:00:00 2001 From: Sam Erde <20478745+SamErde@users.noreply.github.com> Date: Wed, 30 Sep 2026 15:42:16 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20security(ci):=20pin=20analyzer?= =?UTF-8?q?=20workflow=20actions=20and=20restrict=20credentials?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/PowerShell.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PowerShell.yml b/.github/workflows/PowerShell.yml index 2ae0604..99027a9 100644 --- a/.github/workflows/PowerShell.yml +++ b/.github/workflows/PowerShell.yml @@ -12,15 +12,17 @@ jobs: permissions: contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status name: 👮‍♂️ PSScriptAnalyzer runs-on: ubuntu-latest + timeout-minutes: 20 concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + persist-credentials: false - name: 👮‍♂️ Run PSScriptAnalyzer uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f # v1.6.0 @@ -35,6 +37,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@1190a975f95ce23525efb6a3fc21ea29567c1b52 # v3.38.2 with: sarif_file: results.sarif