Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update workflows (major) (#5709)

Openverse (Bot)a4b44c945283
diff --git a/.github/actions/get-changes/action.yml b/.github/actions/get-changes/action.yml
index b62d7762c..667b1e472 100644
--- a/.github/actions/get-changes/action.yml
+++ b/.github/actions/get-changes/action.yml
@@ -10,10 +10,10 @@ runs:
using: "composite"
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- id: paths-filter
name: Check changed paths
- uses: dorny/paths-filter@v3
+ uses: dorny/paths-filter@v4
with:
filters: ./.github/filters.yml
diff --git a/.github/actions/load-img/action.yml b/.github/actions/load-img/action.yml
index 75430022a..602d425c2 100644
--- a/.github/actions/load-img/action.yml
+++ b/.github/actions/load-img/action.yml
@@ -14,7 +14,7 @@ runs:
using: "composite"
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup `pnpm`
uses: ./.github/actions/setup-env
@@ -32,7 +32,7 @@ runs:
pnpm install @actions/[email protected] -w
- name: Download images
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const { DefaultArtifactClient } = require('@actions/artifact')
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml
index 68ab4745b..8a36adbb3 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -30,7 +30,7 @@ runs:
# Python
- name: Setup Python
if: inputs.setup_python == 'true'
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v7
with:
# Ensure that it matches the `requires-python` field in various
# `pyproject.toml` files.
@@ -58,7 +58,7 @@ runs:
- name: Setup Node.js
if: inputs.setup_nodejs == 'true'
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version-file: "package.json"
cache: pnpm
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 65a7b5ad4..e9ada73aa 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -49,7 +49,7 @@ jobs:
js_packages: ${{ contains(fromJson(steps.paths-filter.outputs.changes), 'js_packages') }}
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Get changes
id: paths-filter
@@ -84,7 +84,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Set matrix images
id: set-matrix
@@ -104,7 +104,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -115,7 +115,7 @@ jobs:
install_recipe: "node-install"
- name: Cache pre-commit envs
- uses: actions/cache@v4
+ uses: actions/cache@v6
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -137,7 +137,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- uses: mszostok/[email protected]
with:
@@ -158,7 +158,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
# Sets up `just` and Node.js.
# Node.js is needed for the frontend to download translations.
@@ -178,12 +178,12 @@ jobs:
just versions | tee "$GITHUB_OUTPUT"
- name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
with:
install: true
- name: Build image `${{ matrix.image }}`
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v7
with:
# The Sentry auth token is only set for the production release of the frontend (on push to main or manual release).
secrets: |
@@ -212,7 +212,7 @@ jobs:
- name: Upload image `${{ matrix.image }}`
id: upload-img
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: ${{ matrix.image }}
path: /tmp/${{ matrix.image }}.tar
@@ -242,7 +242,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -266,12 +266,12 @@ jobs:
just versions | tee "$GITHUB_OUTPUT"
- name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
with:
install: true
- name: Build catalog dev image
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v7
with:
context: catalog
target: cat
@@ -301,7 +301,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -341,7 +341,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -365,12 +365,12 @@ jobs:
just versions | tee "$GITHUB_OUTPUT"
- name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
with:
install: true
- name: Build indexer worker dev image
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v7
with:
context: indexer_worker
target: indexer_worker
@@ -405,7 +405,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -433,7 +433,7 @@ jobs:
- name: Upload ingestion test logs
if: success() || failure()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: ing_logs
path: ingestion_server/test/ingestion_logs.txt
@@ -457,7 +457,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -481,12 +481,12 @@ jobs:
just versions | tee "$GITHUB_OUTPUT"
- name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
with:
install: true
- name: Build API dev image
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v7
with:
context: api
target: api
@@ -519,7 +519,7 @@ jobs:
- name: Upload API test logs
if: success() || failure()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: api_logs
path: api_logs
@@ -556,7 +556,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -581,7 +581,7 @@ jobs:
- name: Upload schema
if: matrix.name == 'test_doc'
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: openapi.json
path: ./api/openapi.json
@@ -627,7 +627,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -674,7 +674,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -696,7 +696,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -729,7 +729,7 @@ jobs:
-e text_summary=/tmp/k6-summary.txt
- name: Upload artifacts
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: k6-output
path: /tmp/k6-summary.txt
@@ -762,7 +762,7 @@ jobs:
[^update]: This comment will automatically update with new output each time k6 runs for this PR
""")
- - uses: peter-evans/find-comment@v3
+ - uses: peter-evans/find-comment@v4
if: steps.set-post-comment.outputs.post_comment == 'true'
id: k6-summary-comment
with:
@@ -770,7 +770,7 @@ jobs:
body-includes: Latest k6 run output
- name: Post comment summary
- uses: peter-evans/create-or-update-comment@v4
+ uses: peter-evans/create-or-update-comment@v5
if: steps.set-post-comment.outputs.post_comment == 'true'
with:
issue-number: ${{ github.event.pull_request.number }}
@@ -804,7 +804,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -859,7 +859,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -915,7 +915,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -947,7 +947,7 @@ jobs:
echo "snapshots_changed=false" | tee "$GITHUB_OUTPUT"
fi
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: failure()
id: test-results
with:
@@ -955,7 +955,7 @@ jobs:
path: frontend/test-results
# This step only runs if there was a failure and snapshots indeed changed.
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: failure() && steps.check_snapshots_changed.outputs.snapshots_changed == 'true'
id: snapshot-patch
with:
@@ -993,14 +993,14 @@ jobs:
- playwright
steps:
- - uses: peter-evans/find-comment@v3
+ - uses: peter-evans/find-comment@v4
id: test-results-comment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Playwright failure test results
- name: Delete existing results comment
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
if: steps.test-results-comment.outputs.comment-id != 0
with:
script: |
@@ -1030,7 +1030,7 @@ jobs:
)
echo "$MESSAGE" | tee "$GITHUB_OUTPUT"
- - uses: peter-evans/create-or-update-comment@v4
+ - uses: peter-evans/create-or-update-comment@v5
id: create-comment
# Do not leave a comment on forks
if: |
@@ -1052,7 +1052,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -1097,7 +1097,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -1109,7 +1109,7 @@ jobs:
# Docs will be located at `/tmp/docs`.
- name: Upload documentation
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: documentation
path: /tmp/docs/
@@ -1147,7 +1147,7 @@ jobs:
steps:
- name: Download documentation
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: documentation
path: /tmp/docs
@@ -1159,13 +1159,13 @@ jobs:
mkdir openverse
- name: Checkout repository at `gh-pages` branch
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
ref: gh-pages
path: gh-pages
- name: Checkout automations from repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
path: automation-checkout
@@ -1199,14 +1199,14 @@ jobs:
force_orphan: true
cname: docs.openverse.org
- - uses: peter-evans/find-comment@v3
+ - uses: peter-evans/find-comment@v4
if: github.event_name == 'pull_request'
id: final-preview-comment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Full-stack documentation
- - uses: peter-evans/create-or-update-comment@v4
+ - uses: peter-evans/create-or-update-comment@v5
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
@@ -1215,7 +1215,7 @@ jobs:
body: ${{ steps.preview_diff.outputs.body }}
- name: Checkout repository # again, to enable cleaning
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
if: success() || failure()
#################
@@ -1254,10 +1254,10 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Log in to GitHub Docker Registry
- uses: docker/login-action@v3
+ uses: docker/login-action@v4
with:
registry: https://ghcr.io
username: ${{ github.actor }}
@@ -1303,7 +1303,7 @@ jobs:
- publish-images
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Get commit message
id: commit
@@ -1381,7 +1381,7 @@ jobs:
- publish-images
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Get commit message
id: commit
@@ -1436,7 +1436,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Get commit message
id: commit
@@ -1464,7 +1464,7 @@ jobs:
run: python generate_report.py
- name: Send report
- uses: slackapi/slack-github-action@v2
+ uses: slackapi/slack-github-action@v4
with:
webhook: ${{ secrets.SLACK_OV_ALERTS_WEBHOOK_URL }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/discussion_ping.yml b/.github/workflows/discussion_ping.yml
index 5d2623024..1f2995f77 100644
--- a/.github/workflows/discussion_ping.yml
+++ b/.github/workflows/discussion_ping.yml
@@ -19,7 +19,7 @@ jobs:
steps:
- name: Send notification for new discussion
id: slack
- uses: slackapi/slack-github-action@v2
+ uses: slackapi/slack-github-action@v4
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/draft_releases.yml b/.github/workflows/draft_releases.yml
index 9799c5f2d..d64eff2ea 100644
--- a/.github/workflows/draft_releases.yml
+++ b/.github/workflows/draft_releases.yml
@@ -28,7 +28,7 @@ jobs:
- ingestion_server
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Calculate tag name
id: tag
@@ -45,7 +45,7 @@ jobs:
# Each time this runs, it should replace the previous drafted release matching the tag prefix set in the release drafter config
# This means there will always be a running drafted release for all apps
# Publishing the drafted release triggers the "Tag docker image and trigger deployment" workflow
- - uses: release-drafter/release-drafter@v6
+ - uses: release-drafter/release-drafter@v7
id: release-drafter
with:
config-name: release-drafter-${{ matrix.app }}.yml
diff --git a/.github/workflows/generate_pot.yml b/.github/workflows/generate_pot.yml
index 88959b87e..ba9e1388a 100644
--- a/.github/workflows/generate_pot.yml
+++ b/.github/workflows/generate_pot.yml
@@ -20,7 +20,7 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -35,7 +35,7 @@ jobs:
run: cp frontend/openverse.pot /tmp/openverse.pot
- name: Checkout repository at `translations` branch
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
ref: translations
@@ -50,4 +50,4 @@ jobs:
- name: Checkout repository # again, to enable cleaning.
if: always()
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
diff --git a/.github/workflows/issue_automations.yml b/.github/workflows/issue_automations.yml
index 3e0a66781..02bfd2ebb 100644
--- a/.github/workflows/issue_automations.yml
+++ b/.github/workflows/issue_automations.yml
@@ -22,10 +22,10 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Perform issue automations
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
EVENT_NAME: ${{ github.event_name }}
EVENT_ACTION: ${{ github.event.action }}
diff --git a/.github/workflows/k6.yml b/.github/workflows/k6.yml
index 87a846fb3..f6c8f5ddc 100644
--- a/.github/workflows/k6.yml
+++ b/.github/workflows/k6.yml
@@ -36,7 +36,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -61,7 +61,7 @@ jobs:
- name: Upload artifacts
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: k6-output
path: /tmp/k6-summary.txt
diff --git a/.github/workflows/label_sync.yml b/.github/workflows/label_sync.yml
index fae7b7620..506fb8420 100644
--- a/.github/workflows/label_sync.yml
+++ b/.github/workflows/label_sync.yml
@@ -14,10 +14,10 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Sync labels from monorepo to infra
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
diff --git a/.github/workflows/migration_safety_warning.yml b/.github/workflows/migration_safety_warning.yml
index 9ecfa758b..37e7d0df6 100644
--- a/.github/workflows/migration_safety_warning.yml
+++ b/.github/workflows/migration_safety_warning.yml
@@ -16,16 +16,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- - uses: peter-evans/find-comment@v3
+ - uses: peter-evans/find-comment@v4
id: existing-warning
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: This PR has migrations
- name: Delete existing migration warning comment
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
if: steps.existing-warning.outputs.comment-id != 0
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
@@ -36,7 +36,7 @@ jobs:
comment_id: ${{ steps.existing-warning.outputs.comment-id }},
})
- - uses: peter-evans/create-or-update-comment@v4
+ - uses: peter-evans/create-or-update-comment@v5
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
diff --git a/.github/workflows/playwright_deployment_smoketest.yml b/.github/workflows/playwright_deployment_smoketest.yml
index 9b589668f..4d3c54644 100644
--- a/.github/workflows/playwright_deployment_smoketest.yml
+++ b/.github/workflows/playwright_deployment_smoketest.yml
@@ -20,7 +20,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
@@ -36,7 +36,7 @@ jobs:
run: |
just p frontend test:playwright --grep '@deployment-smoketest'
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: failure()
id: test-results
with:
diff --git a/.github/workflows/pr_automations.yml b/.github/workflows/pr_automations.yml
index e06a36fc9..37aedfc02 100644
--- a/.github/workflows/pr_automations.yml
+++ b/.github/workflows/pr_automations.yml
@@ -42,14 +42,14 @@ jobs:
pull-requests: read
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
persist-credentials: false
# Adapted from the GitHub docs.
# Ref: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
- name: Download artifacts
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
let fs = require('fs');
@@ -102,7 +102,7 @@ jobs:
- name: Resolve pull request from the triggering run
id: resolve
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
EVENT_ACTION: ${{ steps.artifacts.outputs.event-action }}
CHANGES: ${{ steps.artifacts.outputs.changes }}
@@ -147,7 +147,7 @@ jobs:
- name: Perform PR labelling
if: steps.resolve.outcome == 'success'
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
@@ -155,7 +155,7 @@ jobs:
await main(github, core)
- name: Perform PR automations
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
# Runs even if labelling failed, but never on unresolved input.
if: ${{ !cancelled() && steps.resolve.outcome == 'success' }}
with:
diff --git a/.github/workflows/pr_automations_init.yml b/.github/workflows/pr_automations_init.yml
index f570f6c48..f81a58df2 100644
--- a/.github/workflows/pr_automations_init.yml
+++ b/.github/workflows/pr_automations_init.yml
@@ -47,7 +47,7 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Get changes
id: paths-filter
@@ -60,7 +60,7 @@ jobs:
CHANGES: ${{ steps.paths-filter.outputs.changes }}
- name: Upload change info as artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: change_info
path: /tmp/change.json
@@ -80,7 +80,7 @@ jobs:
PR_NODE_ID: ${{ github.event.pull_request.node_id }}
- name: Upload event info as artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: event_info
path: /tmp/event.json
diff --git a/.github/workflows/pr_closed.yml b/.github/workflows/pr_closed.yml
index 391620803..ee8f13593 100644
--- a/.github/workflows/pr_closed.yml
+++ b/.github/workflows/pr_closed.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
with:
ref: gh-pages
diff --git a/.github/workflows/pr_label_check.yml b/.github/workflows/pr_label_check.yml
index 24752d394..b10f46655 100644
--- a/.github/workflows/pr_label_check.yml
+++ b/.github/workflows/pr_label_check.yml
@@ -25,7 +25,7 @@ jobs:
stack: ${{ steps.get_groups.outputs.stack }}
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Get label groups
id: get_groups
diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.yml
index f0460ed68..24fb96ad9 100644
--- a/.github/workflows/pr_limit_reminders.yml
+++ b/.github/workflows/pr_limit_reminders.yml
@@ -20,12 +20,12 @@ jobs:
# secrets. Never check out the PR head (e.g. via `ref`) here, or the PR
# author's code will run with those secrets.
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
persist-credentials: false
sparse-checkout: automations/js/src
- name: Count user PRs
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: count-prs
env:
GH_SLACK_USERNAME_MAP: ${{ secrets.GH_SLACK_USERNAME_MAP }}
@@ -49,7 +49,7 @@ jobs:
echo "required_review_count=$(( pr_count * 1 ))" >> "$GITHUB_ENV"
- name: Send notification
id: slack
- uses: slackapi/slack-github-action@v2
+ uses: slackapi/slack-github-action@v4
with:
webhook: ${{ secrets.SLACK_DM_WEBHOOK_URL }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.yml
index bbd3fdd20..926ea0509 100644
--- a/.github/workflows/pr_ping.yml
+++ b/.github/workflows/pr_ping.yml
@@ -22,7 +22,7 @@ jobs:
EVENT_ACTION: ${{ github.event.action }}
steps:
- name: Write payload to file
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
let { writeFileSync } = await import('fs')
@@ -58,7 +58,7 @@ jobs:
writeFileSync('/tmp/pr_ping_payload.json', JSON.stringify(payload))
- name: Send Slack notification
- uses: slackapi/slack-github-action@v2
+ uses: slackapi/slack-github-action@v4
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/project_thread_update_reminders.yml b/.github/workflows/project_thread_update_reminders.yml
index 1e705a247..b3b21628a 100644
--- a/.github/workflows/project_thread_update_reminders.yml
+++ b/.github/workflows/project_thread_update_reminders.yml
@@ -11,9 +11,9 @@ jobs:
# Prevent running this workflow on forks, it's unnecessary for external contributors
if: github.repository_owner == 'WordPress'
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Send reminders to update project threads
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml
index e047c57dc..45951b288 100644
--- a/.github/workflows/renovate.yml
+++ b/.github/workflows/renovate.yml
@@ -31,9 +31,9 @@ jobs:
# Prevent running this workflow on forks, it's unnecessary for external contributors
if: github.repository_owner == 'WordPress'
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- - uses: actions/cache@v4
+ - uses: actions/cache@v6
if: github.event.inputs.repoCache != 'disabled'
continue-on-error: true
with:
@@ -83,7 +83,7 @@ jobs:
# To solve *that*, we'd have to extract to root (/), which isn't safe.
tar -czvf "$cache_archive" -C "$cache_dir" .
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: github.event.inputs.repoCache != 'disabled'
with:
name: ${{ env.cache_key }}
diff --git a/.github/workflows/sync_meta.yml b/.github/workflows/sync_meta.yml
index 06d54caa3..4a7271181 100644
--- a/.github/workflows/sync_meta.yml
+++ b/.github/workflows/sync_meta.yml
@@ -20,7 +20,7 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Run file sync
uses: BetaHuhn/repo-file-sync-action@v1
diff --git a/.github/workflows/tag_docker_image_and_trigger_deployment.yml b/.github/workflows/tag_docker_image_and_trigger_deployment.yml
index 9d2d2a846..4cb8733cf 100644
--- a/.github/workflows/tag_docker_image_and_trigger_deployment.yml
+++ b/.github/workflows/tag_docker_image_and_trigger_deployment.yml
@@ -28,7 +28,7 @@ jobs:
# https://github.com/WordPress/openverse/pull/3789#pullrequestreview-1876525552
APP_NAME: ${{ startsWith(github.ref_name, 'api-') && 'api' || startsWith(github.ref_name, 'ingestion_server-') && 'ingestion_server' || startsWith(github.ref_name, 'catalog-') && 'catalog' || startsWith(github.ref_name, 'frontend-') && 'frontend' }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
with:
# Creating the tag requires having the whole history of `main`
fetch-depth: 0
@@ -45,7 +45,7 @@ jobs:
} >> "$GITHUB_OUTPUT"
- name: Log in to GitHub Docker Registry
- uses: docker/login-action@v3
+ uses: docker/login-action@v4
with:
registry: https://ghcr.io
username: ${{ github.repository_owner }}
@@ -98,7 +98,7 @@ jobs:
install_recipe: "node-install"
- name: Cache pre-commit envs
- uses: actions/cache@v4
+ uses: actions/cache@v6
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -112,7 +112,7 @@ jobs:
just lint || true
- name: Open changelog PR
- uses: peter-evans/create-pull-request@v7
+ uses: peter-evans/create-pull-request@v8
with:
# Access token necessary for PRs to run with CI
token: ${{ secrets.ACCESS_TOKEN }}
diff --git a/.github/workflows/weekly_updates.yml b/.github/workflows/weekly_updates.yml
index 6c52d0aee..c251f77ab 100644
--- a/.github/workflows/weekly_updates.yml
+++ b/.github/workflows/weekly_updates.yml
@@ -19,7 +19,7 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup CI env
uses: ./.github/actions/setup-env
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9d438e385..56747b47a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
language: system
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v5.0.0
+ rev: v6.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
@@ -39,9 +39,6 @@ repos:
exclude: (frontend/test/tapes/.+\.json5|frontend/.*snapshots.*)
- id: check-symlinks
- id: mixed-line-ending
- - id: fix-encoding-pragma
- args:
- - --remove
- id: check-docstring-first
- id: requirements-txt-fixer
@@ -154,7 +151,7 @@ repos:
files: (.vale/.*|.mdx?)$
- repo: https://github.com/renovatebot/pre-commit-hooks
- rev: 39.182.3
+ rev: 44.238.2
hooks:
- id: renovate-config-validator
args: