diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8c631b7be..21868fa57 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -31,3 +31,11 @@ updates: interval: "daily" commit-message: prefix: "chore(intellij-plugin)" + + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "main" + schedule: + interval: "weekly" + commit-message: + prefix: "chore(ci)" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16c526afb..786b510e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Get version from Cargo.toml id: get-version @@ -84,15 +84,14 @@ jobs: - name: Install Rust toolchain (non-Docker) if: matrix.use_docker == false - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master with: toolchain: stable - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - name: Cache dependencies (non-Docker) if: matrix.use_docker == false - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: | ~/.cargo/registry @@ -162,7 +161,7 @@ jobs: - name: Upload artifact (Windows) if: contains(matrix.os, 'windows') - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: ${{ matrix.artifact_name }} path: release/${{ matrix.artifact_name }}.exe @@ -170,7 +169,7 @@ jobs: - name: Upload artifact (non-Windows) if: ${{ !contains(matrix.os, 'windows') }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: ${{ matrix.artifact_name }} path: release/${{ matrix.artifact_name }} @@ -184,7 +183,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Get version from Cargo.toml id: get-version @@ -194,14 +193,13 @@ jobs: echo "version=v$VERSION" >> $GITHUB_OUTPUT - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master with: toolchain: stable - target: x86_64-apple-darwin - override: true + targets: x86_64-apple-darwin - name: Cache dependencies - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: | ~/.cargo/registry @@ -237,7 +235,7 @@ jobs: cp target/x86_64-apple-darwin/release/git-ai release/git-ai-macos-x64 - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: git-ai-macos-x64 path: release/git-ai-macos-x64 @@ -276,7 +274,7 @@ jobs: echo "channel_label=$CHANNEL" >> "$GITHUB_OUTPUT" - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: path: artifacts @@ -303,7 +301,7 @@ jobs: fi - name: Checkout code for install script - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: path: repo @@ -351,7 +349,7 @@ jobs: sha256sum install.sh install.ps1 >> SHA256SUMS - name: Generate attestations for release artifacts - uses: actions/attest-build-provenance@v2 + uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 with: subject-path: | release/git-ai-* @@ -360,7 +358,7 @@ jobs: release/SHA256SUMS - name: Create Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2 with: tag_name: ${{ steps.release-meta.outputs.tag_name }} name: ${{ steps.release-meta.outputs.release_name }} @@ -421,17 +419,16 @@ jobs: - name: Checkout code for version bump if: inputs.release_production == true - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - name: Install Rust toolchain if: inputs.release_production == true - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master with: toolchain: stable - override: true - name: Bump version in Cargo.toml if: inputs.release_production == true