From c2e04e4600b12165c9d7818fd13af997bd431301 Mon Sep 17 00:00:00 2001 From: omermorad Date: Mon, 28 Sep 2026 17:14:57 +0300 Subject: [PATCH 1/2] chore: use the checkout major tag --- .github/workflows/e2e.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 496d6f3..a89d37e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -47,7 +47,7 @@ jobs: timeout-minutes: 45 steps: - name: Check out repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 - id: e2e name: Run E2E diff --git a/README.md b/README.md index d154c7f..d7c6bc9 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ permissions: pull-requests: write steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - uses: actions/checkout@v7 - id: e2e uses: codotech/playwright-e2e@<40-character-commit-sha> From 9285147083805870ed948320e12bbaf19ea09650 Mon Sep 17 00:00:00 2001 From: omermorad Date: Mon, 28 Sep 2026 17:17:58 +0300 Subject: [PATCH 2/2] chore: use major action versions --- .github/actions/package-e2e-report/action.yml | 2 +- .github/actions/prepare-e2e/action.yml | 4 ++-- .github/actions/publish-e2e-results/action.yml | 2 +- .github/workflows/e2e.yml | 2 +- README.md | 6 +++--- action.yml | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/package-e2e-report/action.yml b/.github/actions/package-e2e-report/action.yml index 780d6d2..f98e7ca 100644 --- a/.github/actions/package-e2e-report/action.yml +++ b/.github/actions/package-e2e-report/action.yml @@ -82,7 +82,7 @@ runs: } >> "$GITHUB_OUTPUT" - name: Upload report image archive - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.artifact-name }} path: ${{ steps.package.outputs.archive-path }} diff --git a/.github/actions/prepare-e2e/action.yml b/.github/actions/prepare-e2e/action.yml index a2f778d..daf5d18 100644 --- a/.github/actions/prepare-e2e/action.yml +++ b/.github/actions/prepare-e2e/action.yml @@ -47,13 +47,13 @@ runs: "$GITHUB_OUTPUT" - name: Set up pnpm - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6 + uses: pnpm/action-setup@v6 with: version: ${{ inputs.pnpm-version }} run_install: false - name: Set up Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + uses: actions/setup-node@v7 with: node-version: ${{ inputs.node-version }} cache: pnpm diff --git a/.github/actions/publish-e2e-results/action.yml b/.github/actions/publish-e2e-results/action.yml index 9e69ea9..8379986 100644 --- a/.github/actions/publish-e2e-results/action.yml +++ b/.github/actions/publish-e2e-results/action.yml @@ -91,7 +91,7 @@ runs: - id: publish name: Upload final E2E results continue-on-error: true - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.artifact-name }} path: ${{ steps.prepare.outputs.results-directory }}/ diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a89d37e..68c02d2 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -65,7 +65,7 @@ jobs: - name: Update pull request if: always() && github.event_name == 'pull_request' - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 + uses: actions/github-script@v8 env: E2E_RESULT: ${{ steps.e2e.outputs.result }} E2E_PRIMARY_FAILURE: ${{ steps.e2e.outputs.primary-failure }} diff --git a/README.md b/README.md index d7c6bc9..6cec413 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The template owns repository policy: triggers, permissions, concurrency, checkou ## Use the action -Check out the caller repository first, then invoke the root action. Pin it to a full commit SHA: +Check out the caller repository first, then invoke the root action. Use major-version references for released actions: ```yaml permissions: @@ -47,12 +47,12 @@ steps: - uses: actions/checkout@v7 - id: e2e - uses: codotech/playwright-e2e@<40-character-commit-sha> + uses: codotech/playwright-e2e@main with: profile: pull-request ``` -There is intentionally no release tag yet. Adopt an immutable commit only after reviewing it; the starter contains a working pinned example. +There is intentionally no release tag yet, so the starter follows `main`. Replace it with `@v1` when the first major version is published. ### Inputs diff --git a/action.yml b/action.yml index 73deb73..aa3f592 100644 --- a/action.yml +++ b/action.yml @@ -111,7 +111,7 @@ runs: - id: runner-cache name: Restore E2E runner archive continue-on-error: true - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache@v6 with: path: .e2e-runner key: e2e-runner-v1-${{ runner.os }}-${{ runner.arch }}-${{ steps.plan.outputs.runner-content-hash }} @@ -143,7 +143,7 @@ runs: name: Upload portable E2E runner image if: always() && (steps.reuse.outcome == 'success' || steps.build.outcome == 'success') continue-on-error: true - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + uses: actions/upload-artifact@v7 with: name: e2e-runner-image path: ${{ steps.reuse.outputs.archive-path || steps.build.outputs.archive-path }}