From 9b75322e68340f8635e01cc8db38faf1d962dab9 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Fri, 28 Aug 2026 19:13:26 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/AzGovViz.yml | 10 +++++----- .github/workflows/AzGovViz_OIDC.yml | 12 ++++++------ .github/workflows/upstream-release-checker.yml | 6 +++--- 4 files changed, 25 insertions(+), 14 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/AzGovViz.yml b/.github/workflows/AzGovViz.yml index 5774720..0533ab7 100644 --- a/.github/workflows/AzGovViz.yml +++ b/.github/workflows/AzGovViz.yml @@ -31,10 +31,10 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 - name: Connect Azure - uses: azure/login@v1 + uses: azure/login@cb79c773a3cfa27f31f25eb3f677781210c9ce3d # v1.6.1 with: creds: ${{secrets.CREDS}} enable-AzPSSession: true @@ -48,14 +48,14 @@ jobs: # } - name: Check prerequisites - uses: azure/powershell@v1 + uses: azure/powershell@1300bbd2b3e1c21c029fe34887d16d2809a1397f # v1.4.0 with: inlineScript: | . .\$($env:ScriptDir)\$($env:ScriptPrereqFile) -OutputPath ${env:OutputPath} azPSVersion: "latest" - name: Run Azure Governance Visualizer - uses: azure/powershell@v1 + uses: azure/powershell@1300bbd2b3e1c21c029fe34887d16d2809a1397f # v1.4.0 with: inlineScript: | . .\$($env:ScriptDir)\$($env:ScriptFile) -ManagementGroupId ${env:ManagementGroupId} -ScriptPath ${env:ScriptDir} -OutputPath ${env:OutputPath} @@ -72,7 +72,7 @@ jobs: - name: Publish HTML to WebApp if: env.WebAppPublish == 'true' - uses: azure/powershell@v1 + uses: azure/powershell@1300bbd2b3e1c21c029fe34887d16d2809a1397f # v1.4.0 with: inlineScript: | $azAPICallConf = initAzAPICall -DebugAzAPICall $true diff --git a/.github/workflows/AzGovViz_OIDC.yml b/.github/workflows/AzGovViz_OIDC.yml index bac839c..9473ec9 100644 --- a/.github/workflows/AzGovViz_OIDC.yml +++ b/.github/workflows/AzGovViz_OIDC.yml @@ -36,10 +36,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 - name: Connect Azure OIDC - uses: azure/login@v1 + uses: azure/login@cb79c773a3cfa27f31f25eb3f677781210c9ce3d # v1.6.1 with: client-id: ${{secrets.CLIENT_ID}} #create this secret tenant-id: ${{secrets.TENANT_ID}} #create this secret @@ -47,14 +47,14 @@ jobs: enable-AzPSSession: true - name: Check prerequisites - uses: azure/powershell@v1 + uses: azure/powershell@1300bbd2b3e1c21c029fe34887d16d2809a1397f # v1.4.0 with: inlineScript: | . .\$($env:ScriptDir)\$($env:ScriptPrereqFile) -OutputPath ${env:OutputPath} azPSVersion: "latest" - name: Run Azure Governance Visualizer - uses: azure/powershell@v1 + uses: azure/powershell@1300bbd2b3e1c21c029fe34887d16d2809a1397f # v1.4.0 with: inlineScript: | . .\$($env:ScriptDir)\$($env:ScriptFile) -ManagementGroupId ${env:ManagementGroupId} -SubscriptionId4AzContext ${{secrets.SUBSCRIPTION_ID}} -ScriptPath ${env:ScriptDir} -OutputPath ${env:OutputPath} -GitHubActionsOIDC @@ -72,7 +72,7 @@ jobs: #log again to avoid timeout before web publishing - name: Connect Azure OIDC if: env.WebAppPublish == 'true' - uses: azure/login@v1 + uses: azure/login@cb79c773a3cfa27f31f25eb3f677781210c9ce3d # v1.6.1 with: client-id: ${{secrets.CLIENT_ID}} #create this secret (GitHub/Setting/Secrets) tenant-id: ${{secrets.TENANT_ID}} #create this secret @@ -81,7 +81,7 @@ jobs: - name: Publish HTML to WebApp if: env.WebAppPublish == 'true' - uses: azure/powershell@v1 + uses: azure/powershell@1300bbd2b3e1c21c029fe34887d16d2809a1397f # v1.4.0 with: inlineScript: | $azAPICallConf = initAzAPICall -DebugAzAPICall $true diff --git a/.github/workflows/upstream-release-checker.yml b/.github/workflows/upstream-release-checker.yml index c6056dd..a4f56f7 100644 --- a/.github/workflows/upstream-release-checker.yml +++ b/.github/workflows/upstream-release-checker.yml @@ -21,14 +21,14 @@ jobs: contents: write pull-requests: write steps: - - uses: tibdex/github-app-token@v1 + - uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1.9.0 id: generate-token with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Local repository checkout - uses: actions/checkout@v3 + uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0 with: path: ${{ github.repository }} fetch-depth: 0 @@ -68,7 +68,7 @@ jobs: working-directory: ${{ github.repository }} - name: Find and Replace Upstream Repo With This Repo - uses: jacobtomlinson/gha-find-replace@v3 + uses: jacobtomlinson/gha-find-replace@2ff30f644d2e0078fc028beb9193f5ff0dcad39e # v3 with: find: "JulianHayward/Azure-MG-Sub-Governance-Reporting" replace: "Azure/Azure-Governance-Visualizer"