Skip to content

Remove unused Pages permissions and dead steps from test job#83

Merged
KittyChiu merged 2 commits into
mainfrom
copilot/fix-code-for-review-comment
May 14, 2026
Merged

Remove unused Pages permissions and dead steps from test job#83
KittyChiu merged 2 commits into
mainfrom
copilot/fix-code-for-review-comment

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

After the actions/deploy-pages step was removed, the test job retained permissions and steps that no longer serve any purpose.

Changes

  • Permissions: Removed pages: write and id-token: write from the test job — only needed for deploying to Pages.
  • Dead steps removed:
    • actions/configure-pages ("Setup Pages") — no longer needed without a deployment target.
    • actions/upload-pages-artifact ("Upload Pages artifact") — htmlproofer reads from $SITE_DIR directly; nothing consumes the uploaded artifact.

Copilot AI changed the title [WIP] Fix code as per review comment Remove unused Pages permissions and dead steps from test job May 14, 2026
Copilot AI requested a review from KittyChiu May 14, 2026 01:52
@KittyChiu KittyChiu marked this pull request as ready for review May 14, 2026 01:52
Copilot AI review requested due to automatic review settings May 14, 2026 01:52
@github-actions github-actions Bot added ready for review and removed draft PR is in draft labels May 14, 2026
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • .github/workflows/pr-check.yml

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Cleans up the test job in the PR check workflow by removing permissions and steps that became dead code after the Pages deployment step was removed.

Changes:

  • Drops id-token: write and pages: write permissions from the test job.
  • Removes the Setup Pages step (actions/configure-pages@v6).
  • Removes the Upload Pages artifact step (actions/upload-pages-artifact@v5).
Show a summary per file
File Description
.github/workflows/pr-check.yml Removes unused Pages-related permissions and two dead workflow steps no longer needed by htmlproofer.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@KittyChiu KittyChiu merged commit 195d3f1 into main May 14, 2026
14 checks passed
@KittyChiu KittyChiu deleted the copilot/fix-code-for-review-comment branch May 14, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants