Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/build-push-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ runs:
using: composite
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # ratchet:docker/setup-qemu-action@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # ratchet:docker/setup-buildx-action@v4

- name: Log in to container registry
uses: docker/login-action@v4
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # ratchet:docker/login-action@v4
with:
registry: ghcr.io
username: ${{ inputs.registry-username }}
Expand All @@ -57,7 +57,7 @@ runs:

- name: Build and push Docker image
if: steps.image_check.outputs.exists != 'true'
uses: docker/build-push-action@v7
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # ratchet:docker/build-push-action@v7
with:
context: ${{ inputs.context }}
tags: ${{ inputs.tags }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/remove-gcs-path/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ inputs:
runs:
using: composite
steps:
- uses: google-github-actions/auth@v3
- uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # ratchet:google-github-actions/auth@v3
with:
credentials_json: ${{ inputs.credentials-json }}

- uses: google-github-actions/setup-gcloud@v3
- uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # ratchet:google-github-actions/setup-gcloud@v3

- name: Validate path
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/update-pr-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
steps:
- name: Find existing consolidated comment
id: find-comment
uses: peter-evans/find-comment@v4
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # ratchet:peter-evans/find-comment@v4
with:
issue-number: ${{ inputs.issue-number }}
comment-author: github-actions[bot]
Expand Down Expand Up @@ -57,7 +57,7 @@ runs:
fh.write(f'body<<{delimiter}\n{new_body}\n{delimiter}\n')

- name: Create or update consolidated comment
uses: peter-evans/create-or-update-comment@v5
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # ratchet:peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ inputs.issue-number }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/upload-to-gcs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ runs:
shell: bash
run: echo "public-url=https://storage.googleapis.com/site-kit-github-artifacts/${{ inputs.destination }}" >> "$GITHUB_OUTPUT"

- uses: google-github-actions/auth@v3
- uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # ratchet:google-github-actions/auth@v3
with:
credentials_json: ${{ inputs.credentials-json }}

- name: Upload files
uses: google-github-actions/upload-cloud-storage@v3
uses: google-github-actions/upload-cloud-storage@6397bd7208e18d13ba2619ee21b9873edc94427a # ratchet:google-github-actions/upload-cloud-storage@v3
with:
path: ${{ inputs.path }}
destination: site-kit-github-artifacts/${{ inputs.destination }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/browserslist-db-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Check if branch exists
id: check-branch
continue-on-error: true
uses: fjogeleit/http-request-action@v1
uses: fjogeleit/http-request-action@c0b95d02a088b47c1f2f4db04fd8af8bd19eee54 # ratchet:fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/${{ github.repository }}/git/ref/heads/${{ env.branch-name }}'
method: 'GET'
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Delete branch
id: delete-branch
if: steps.check-branch.outcome == 'success'
uses: fjogeleit/http-request-action@v1
uses: fjogeleit/http-request-action@c0b95d02a088b47c1f2f4db04fd8af8bd19eee54 # ratchet:fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/${{ github.repository }}/git/refs/heads/${{ env.branch-name }}'
method: 'DELETE'
Expand All @@ -54,16 +54,16 @@ jobs:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm

- name: Update Browserslist database and create PR if applicable
uses: c2corg/browserslist-update-action@v2
uses: c2corg/browserslist-update-action@a76abb476199caea5399f9e28ff3f16e491ec566 # ratchet:c2corg/browserslist-update-action@v2
with:
github_token: ${{ secrets.GH_BOT_TOKEN }}
branch: ${{ env.branch-name }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-issue-has-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
) &&
github.event.review.state == 'approved'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
- '!assets/**/test/**'
- 'assets/**/*.scss'
- 'assets/svg/**/*.svg'
- './*.config.js'
- './package-lock.json'
- '**/*.config.js'
- 'package-lock.json'

concurrency:
group: compressed-size-${{ github.ref }}
Expand All @@ -33,15 +33,15 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm

- uses: preactjs/compressed-size-action@v2
- uses: preactjs/compressed-size-action@66325aad6443cb7cf89c4bfcd414aea2367cda94 # ratchet:preactjs/compressed-size-action@v2
with:
install-script: npm ci --workspace=assets --include-workspace-root
repo-token: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
timeout-minutes: 30
if: github.event_name == 'push' || github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -110,7 +110,7 @@ jobs:
run: npm run build:test

# E2E tests use a dedicated container, this is just for Composer.
- uses: shivammathur/setup-php@v2
- uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # ratchet:shivammathur/setup-php@v2
with:
php-version: '8.4'
env:
Expand All @@ -120,7 +120,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- uses: actions/cache@v5
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # ratchet:actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -136,7 +136,7 @@ jobs:
run: npm run test:e2e

- name: Upload artifacts
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # ratchet:actions/upload-artifact@v6
if: failure()
with:
name: e2e-debugging-run[${{ github.run_attempt }}]-wp[${{ matrix.wp_version }}]-amp[${{ matrix.amp_version }}]
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/gemini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
issues: read
services:
mysql:
image: mysql:5.7
image: mysql:5.7 # ratchet:exclude
env:
MYSQL_ROOT_PASSWORD: wordpress
ports:
Expand All @@ -33,16 +33,16 @@ jobs:
WP_VERSION: latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
- name: Install SVN
run: sudo apt-get update && sudo apt-get install -y subversion
- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # ratchet:shivammathur/setup-php@v2
with:
php-version: "8.4"
extensions: mysqli, uopz
Expand All @@ -52,7 +52,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache Composer dependencies
uses: actions/cache@v5
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # ratchet:actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
git add .
git diff --staged --binary > implementation.patch
- name: Upload patch
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # ratchet:actions/upload-artifact@v6
with:
name: implementation-patch
path: implementation.patch
Expand All @@ -96,16 +96,16 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- name: Download patch
uses: actions/download-artifact@v7
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # ratchet:actions/download-artifact@v7
with:
name: implementation-patch
- name: Apply patch
run: git apply implementation.patch
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # ratchet:peter-evans/create-pull-request@v8
with:
commit-message: "Implement issue #${{ inputs.issue_number }}"
branch: gemini/issue-${{ inputs.issue_number }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/js-css-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -69,8 +69,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -83,8 +83,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -99,8 +99,8 @@ jobs:
env:
JEST_RESULTS_FILE: jest-results.json
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/php-lint-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

- uses: shivammathur/setup-php@v2
- uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # ratchet:shivammathur/setup-php@v2
with:
php-version: '8.4'
env:
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v5
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # ratchet:actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -89,11 +89,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

# Using PHP 8.4 here for Composer install to trigger PHP Scoper as the latest supported active version of PHP.
- name: Setup PHP for Composer
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # ratchet:shivammathur/setup-php@v2
with:
php-version: '8.4'
env:
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v5
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # ratchet:actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
wp_version: 'nightly'
services:
mysql:
image: mysql:5.7
image: mysql:5.7 # ratchet:exclude
env:
MYSQL_ROOT_PASSWORD: wordpress
ports:
Expand All @@ -157,13 +157,13 @@ jobs:
WP_MULTISITE: ${{ matrix.wp_multisite }}
WP_VERSION: ${{ matrix.wp_version }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

- name: Install SVN
run: sudo apt-get update && sudo apt-get install -y subversion

- name: Setup PHP for Composer
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # ratchet:shivammathur/setup-php@v2
with:
php-version: '8.4'
env:
Expand All @@ -172,7 +172,7 @@ jobs:
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v5
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # ratchet:actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -189,7 +189,7 @@ jobs:
run: composer install --no-interaction --no-progress -vv

- name: Setup PHP for Tests
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # ratchet:shivammathur/setup-php@v2
with:
extensions: mysqli, uopz
php-version: ${{ matrix.php_version }}
Expand Down
Loading
Loading