From 32e7fc9166d3a6e823dee40ddb2bbf025ce923d6 Mon Sep 17 00:00:00 2001 From: Marcos Oliveira Date: Wed, 2 Dec 2026 22:36:45 -0500 Subject: [PATCH] CI: pin GitHub actions to exact commit SHAs A version tag like @v7 can be moved by the action's owner, and the next run would execute the new code with the repo's secrets. Each action is now locked to the commit its v7 tag pointed at today; the trailing comment names the release. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/continuous-evaluation.yml | 6 +++--- .github/workflows/smoke-tests.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continuous-evaluation.yml b/.github/workflows/continuous-evaluation.yml index 40d5214..90c116b 100644 --- a/.github/workflows/continuous-evaluation.yml +++ b/.github/workflows/continuous-evaluation.yml @@ -25,14 +25,14 @@ jobs: LANGFUSE_PUBLIC_KEY: ${{ secrets.LANGFUSE_PUBLIC_KEY }} LANGFUSE_SECRET_KEY: ${{ secrets.LANGFUSE_SECRET_KEY }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # The `secrets` context is not available in a job-level `if`, so each step checks the env copy. - name: Skip when OPENAI_API_KEY is not set if: env.OPENAI_API_KEY == '' run: echo "::notice::OPENAI_API_KEY secret is not set; evaluation skipped." - - uses: actions/setup-python@v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 if: env.OPENAI_API_KEY != '' with: python-version: "3.13" @@ -53,7 +53,7 @@ jobs: - name: Upload run artifacts if: always() && env.OPENAI_API_KEY != '' - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: rag-evaluation-results path: | diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 4900227..c2f29df 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -8,9 +8,9 @@ jobs: smoke: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: actions/setup-python@v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: "3.13"