From 85497af77b77d15e8b84deae81cdb19922bc2af7 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Wed, 19 Aug 2026 13:18:50 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/publishbusestracing.yml | 14 +++++++------- 2 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/publishbusestracing.yml b/.github/workflows/publishbusestracing.yml index 9cc2171..d03bb5c 100644 --- a/.github/workflows/publishbusestracing.yml +++ b/.github/workflows/publishbusestracing.yml @@ -18,7 +18,7 @@ jobs: next_version: ${{ steps.version.outputs.next_version }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: fetch-depth: 0 # full history fetch-tags: true # also fetch tags @@ -67,10 +67,10 @@ jobs: PROJECT_PATH: 'usb/tracingwrapper/BusesTraceWrapper.csproj' steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: dotnet-version: ${{ env.DOTNET_VERSION }} @@ -130,7 +130,7 @@ jobs: Write-Host "Created release/$zipName" - name: Upload artifact (this runtime) - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: zips-${{ matrix.runtime }} path: release/busestracing-${{ matrix.runtime }}.zip @@ -144,10 +144,10 @@ jobs: contents: write steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: path: release @@ -168,7 +168,7 @@ jobs: } - name: Create GitHub Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 with: tag_name: bt${{ needs.versioning.outputs.next_version }} name: "Buses Tracing Tools (winget) v${{ needs.versioning.outputs.next_version }}"