Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[MISC] Pin GitHub Actions to commit SHAs and let Dependabot update them (#2390)

Ritwik G389a6eb80fe4
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..9a1488cb2
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,20 @@
+# Keeps the SHA-pinned actions in .github/workflows current: one grouped PR a
+# week that bumps each pin and its version comment.
+#
+# Dependabot-triggered runs get only Dependabot secrets (none are set) and a
+# read-only GITHUB_TOKEN. ci-test.yaml therefore skips its Docker Hub login
+# (pulls go anonymous) and its sticky PR comment for dependabot[bot].
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "weekly"
+ groups:
+ github-actions:
+ patterns:
+ - "*"
+ commit-message:
+ # Trailing space stops Dependabot inserting a colon after the "]",
+ # so titles read "[DEPS] Bump ...".
+ prefix: "[DEPS] "
diff --git a/.github/workflows/ci-frontend-lint.yaml b/.github/workflows/ci-frontend-lint.yaml
index 1c87375a9..7131ecf9c 100644
--- a/.github/workflows/ci-frontend-lint.yaml
+++ b/.github/workflows/ci-frontend-lint.yaml
@@ -50,7 +50,7 @@ jobs:
uses: actions/checkout@v6
- name: Setup Biome
- uses: biomejs/setup-biome@v2
+ uses: biomejs/setup-biome@4c91541eaada48f67d7dbd7833600ce162b68f51 # v2.7.1
with:
version: "2.3.13"
diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml
index 66239e7b3..8509f496b 100644
--- a/.github/workflows/ci-test.yaml
+++ b/.github/workflows/ci-test.yaml
@@ -166,8 +166,10 @@ jobs:
- name: Login to Docker Hub
# Authenticated pulls avoid the anonymous rate limit shared by all
- # runners. Forks have no access to secrets.
- if: github.event.pull_request == null || github.event.pull_request.head.repo.fork == false
+ # runners. Forks have no access to secrets, and neither do runs
+ # Dependabot triggers (they get only Dependabot secrets, none set), so
+ # both pull anonymously and can hit Docker Hub's rate limit.
+ if: (github.event.pull_request == null || github.event.pull_request.head.repo.fork == false) && github.actor != 'dependabot[bot]'
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -206,14 +208,14 @@ jobs:
run: ./run-platform.sh -e
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
+ uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
# Bake instead of `compose build` so each ephemeral runner restores layers
# from the GHA cache the release workflow also writes (matching per-service
# scopes), instead of building cold every run. `load` exports the images
# into the daemon so the compose stack can boot them.
- name: Build service images
- uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7
+ uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
files: ./docker/docker-compose.build.yaml
load: true
@@ -339,8 +341,10 @@ jobs:
key: unstract-test-baseline-main-${{ github.run_id }}
- name: Render combined test report to PR
+ # Dependabot runs get a read-only GITHUB_TOKEN, so the comment would be
+ # refused; skip it there like forks. The job summary still carries it.
uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3.0.2
- if: always() && hashFiles('reports/combined-test-report.md') != '' && github.event.pull_request.head.repo.fork == false
+ if: always() && hashFiles('reports/combined-test-report.md') != '' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]'
with:
header: test-results
recreate: true
diff --git a/.github/workflows/docker-tools-build-push.yaml b/.github/workflows/docker-tools-build-push.yaml
index b18507a9a..dc1173b82 100644
--- a/.github/workflows/docker-tools-build-push.yaml
+++ b/.github/workflows/docker-tools-build-push.yaml
@@ -36,19 +36,19 @@ jobs:
# Set up QEMU for ARM64 emulation
- name: Set up QEMU
- uses: docker/setup-qemu-action@v4
+ uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
with:
platforms: linux/amd64,linux/arm64/v8
# Set up Docker Buildx for better caching and multi-arch builds
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
platforms: linux/amd64,linux/arm64/v8
# Log in to Docker Hub
- name: Login to Docker Hub
- uses: docker/login-action@v4
+ uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -86,7 +86,7 @@ jobs:
# Build and push Docker image
- name: Build and push ${{ github.event.inputs.service_name }}
- uses: docker/build-push-action@v7
+ uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: ${{ steps.build-config.outputs.context }}
file: ${{ steps.build-config.outputs.dockerfile }}
diff --git a/.github/workflows/production-build.yaml b/.github/workflows/production-build.yaml
index 8a9745b30..b91d35b33 100644
--- a/.github/workflows/production-build.yaml
+++ b/.github/workflows/production-build.yaml
@@ -119,19 +119,19 @@ jobs:
# Set up QEMU for ARM64 emulation
- name: Set up QEMU
- uses: docker/setup-qemu-action@v4
+ uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
with:
platforms: linux/amd64,linux/arm64/v8
# Set up Docker Buildx for better caching and multi-arch builds
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
platforms: linux/amd64,linux/arm64/v8
# Log in to Docker Hub
- name: Login to Docker Hub
- uses: docker/login-action@v4
+ uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -167,7 +167,7 @@ jobs:
# Build and push using Docker Bake
- name: Build and push image
- uses: docker/bake-action@v7
+ uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
env:
VERSION: ${{ env.DOCKER_VERSION_TAG }}
with:
@@ -352,7 +352,7 @@ jobs:
# Send summary notification to Slack
- name: Send Slack summary notification
if: always()
- uses: slackapi/[email protected]
+ uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
webhook-type: incoming-webhook
payload: |
diff --git a/.github/workflows/release-notification.yaml b/.github/workflows/release-notification.yaml
index 8aba0ed3e..f22e83285 100644
--- a/.github/workflows/release-notification.yaml
+++ b/.github/workflows/release-notification.yaml
@@ -10,7 +10,7 @@ jobs:
steps:
- name: Send Slack notification
- uses: slackapi/[email protected]
+ uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
webhook-type: incoming-webhook
payload: |
diff --git a/.github/workflows/uv-lock-automation.yaml b/.github/workflows/uv-lock-automation.yaml
index af4961add..38756b976 100644
--- a/.github/workflows/uv-lock-automation.yaml
+++ b/.github/workflows/uv-lock-automation.yaml
@@ -38,7 +38,7 @@ jobs:
ref: ${{ github.head_ref }}
- name: Install uv
- uses: astral-sh/setup-uv@v7
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
# Install a specific version of uv.
version: "0.6.14"
@@ -72,7 +72,7 @@ jobs:
shell: bash
- name: Commit uv.lock changes
- uses: stefanzweifel/git-auto-commit-action@v7
+ uses: stefanzweifel/git-auto-commit-action@d0b01107b5db882071f96de5dd4b54961ea93f4c # v7.2.1
with:
commit_message: Commit uv.lock changes
commit_user_name: uv-lock-automation[bot]