diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..2c48305b7 --- /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/rust.yml b/.github/workflows/rust.yml index ebe7ba189..afca190a3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,7 +24,7 @@ jobs: platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{matrix.platform}} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - name: Add WinGet links to PATH if: matrix.platform == 'windows-latest' run: | @@ -47,7 +47,7 @@ jobs: linux-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: fetch-depth: 0 - name: Install prerequisites @@ -55,7 +55,7 @@ jobs: - name: Build and test with code coverage run: ./build.ps1 -Clippy -Test -CodeCoverage -ExcludePesterTests -Verbose - name: Upload coverage data - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: linux-coverage path: lcov.info @@ -63,7 +63,7 @@ jobs: - name: Prepare build artifact run: tar -cvf bin.tar bin/ - name: Upload build artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: linux-bin path: bin.tar @@ -75,9 +75,9 @@ jobs: group: [dsc, adapters, extensions, resources] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - name: Download build artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: linux-bin - name: Expand build artifact @@ -122,7 +122,7 @@ jobs: } - name: Upload coverage data if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: linux-pester-${{matrix.group}}-coverage path: pester-lcov.info @@ -131,7 +131,7 @@ jobs: macos-build: runs-on: macos-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: fetch-depth: 0 - name: Install prerequisites @@ -139,7 +139,7 @@ jobs: - name: Build and test with code coverage run: ./build.ps1 -Clippy -Test -CodeCoverage -ExcludePesterTests -Verbose - name: Upload coverage data - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: macos-coverage path: lcov.info @@ -147,7 +147,7 @@ jobs: - name: Prepare build artifact run: tar -cvf bin.tar bin/ - name: Upload build artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: macos-bin path: bin.tar @@ -159,9 +159,9 @@ jobs: group: [dsc, adapters, extensions, resources] runs-on: macos-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - name: Download build artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: macos-bin - name: Expand build artifact @@ -206,7 +206,7 @@ jobs: } - name: Upload coverage data if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: macos-pester-${{matrix.group}}-coverage path: pester-lcov.info @@ -219,7 +219,7 @@ jobs: - name: Add WinGet links to PATH run: | "$env:LOCALAPPDATA\\Microsoft\\WinGet\\Links" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_PATH - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: fetch-depth: 0 - name: Install prerequisites @@ -227,7 +227,7 @@ jobs: - name: Build and test with code coverage run: ./build.ps1 -Clippy -Test -CodeCoverage -ExcludePesterTests -Verbose - name: Upload coverage data - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: windows-coverage path: lcov.info @@ -237,7 +237,7 @@ jobs: - name: Prepare build artifact run: tar -cvf bin.tar bin - name: Upload build artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: windows-bin path: bin.tar @@ -249,9 +249,9 @@ jobs: group: [dsc, adapters, extensions, resources] runs-on: windows-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - name: Download build artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: windows-bin - name: Expand build artifact @@ -296,7 +296,7 @@ jobs: } - name: Upload coverage data if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: windows-pester-${{matrix.group}}-coverage path: pester-lcov.info @@ -319,12 +319,12 @@ jobs: pull-requests: write contents: read steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: fetch-depth: 0 - name: Download coverage artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: pattern: '*coverage' path: coverage-data @@ -415,7 +415,7 @@ jobs: steps.coverage.outputs.has_rust_changes == 'true' && steps.coverage.outputs.coverage_failed != 'true' && github.event.pull_request.head.repo.full_name == github.repository - uses: marocchino/sticky-pull-request-comment@v2 + uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 with: header: coverage-report message: | @@ -448,7 +448,7 @@ jobs: if: >- steps.coverage.outputs.coverage_failed == 'true' && github.event.pull_request.head.repo.full_name == github.repository - uses: marocchino/sticky-pull-request-comment@v2 + uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 with: header: coverage-report message: | @@ -462,7 +462,7 @@ jobs: steps.coverage.outputs.has_rust_changes == 'false' && steps.coverage.outputs.coverage_failed != 'true' && github.event.pull_request.head.repo.full_name == github.repository - uses: marocchino/sticky-pull-request-comment@v2 + uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 with: header: coverage-report message: |