From 719e6976f0b0fd5da6ee858ce0d8310c7bc0a6fd Mon Sep 17 00:00:00 2001 From: avivkeller Date: Thu, 31 Jul 2025 10:12:39 -0400 Subject: [PATCH] chore(ci): harden --- .github/dependabot.yml | 4 ++++ .github/workflows/cla.yaml | 4 ++-- .github/workflows/pull-request.yaml | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2cebf5b..c0e00fb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "monthly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 3713922..e44e37d 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: "Get Team Members" id: team - uses: actions/github-script@v6 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: github-token: ${{ secrets.ORG_TOKEN }} result-encoding: string @@ -25,7 +25,7 @@ jobs: - name: "CLA Assistant" if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.1.3-beta + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }} diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 708efb3..4e8b2cd 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -11,8 +11,10 @@ jobs: CARGO_PROFILE_DEV_DEBUG: 0 CARGO_PROFILE_TEST_DEBUG: 0 steps: - - uses: actions/checkout@v2 - - uses: Swatinem/rust-cache@v1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + - uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0 - run: cargo fmt --all -- --check - run: cargo clippy --locked --all-targets -- -D warnings - run: cargo test --no-run