Skip to content

Uncomment deploy step in GitHub Actions workflow#9

Merged
peterus merged 1 commit intomainfrom
peterus-patch-1
Feb 20, 2026
Merged

Uncomment deploy step in GitHub Actions workflow#9
peterus merged 1 commit intomainfrom
peterus-patch-1

Conversation

@peterus
Copy link
Copy Markdown
Member

@peterus peterus commented Feb 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 20:17
@peterus peterus merged commit 3f53d76 into main Feb 20, 2026
2 of 3 checks passed
@peterus peterus deleted the peterus-patch-1 branch February 20, 2026 20:17
Copy link
Copy Markdown

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

Re-enables the GitHub Pages deployment step in the release documentation workflow so that generated release artifacts are automatically published to the external documentation repository.

Changes:

  • Uncomment and reintroduce the Deploy 🚀 step using JamesIves/github-pages-deploy-action@v4.
  • Deploy the output/ directory to OE5XRX/OE5XRX.github.io under docs/remote-station/hardware/${{ github.event.repository.name }}.

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

# target-folder: docs/remote-station/hardware/${{ github.event.repository.name }}
# clean: true
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

This deploy step grants a long-lived secret (DEPLOY_GH_TOKEN) to a third-party action. To reduce supply-chain risk, consider pinning JamesIves/github-pages-deploy-action to a specific commit SHA (or at least a fully qualified release tag) rather than @v4, since this step can push to another repository.

Suggested change
uses: JamesIves/github-pages-deploy-action@v4
uses: JamesIves/github-pages-deploy-action@v4.6.0

Copilot uses AI. Check for mistakes.
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.DEPLOY_GH_TOKEN }}
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

DEPLOY_GH_TOKEN should be a fine-grained PAT scoped only to OE5XRX/OE5XRX.github.io with the minimal permissions required for this deploy (and ideally stored behind a protected GitHub Environment). This workflow runs on release: published, so tightening token scope and gating helps limit blast radius if the workflow is triggered unexpectedly.

Suggested change
token: ${{ secrets.DEPLOY_GH_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.
Comment on lines +67 to +75
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.DEPLOY_GH_TOKEN }}
repository-name: OE5XRX/OE5XRX.github.io
branch: main
folder: output
target-folder: docs/remote-station/hardware/${{ github.event.repository.name }}
clean: true
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

Consider adding an explicit permissions: block (workflow- or job-level) to enforce least-privilege for the GITHUB_TOKEN. Right now this workflow relies on the repository default permissions, but the job performs a deployment and uses several secrets, so being explicit makes permission changes safer/auditable.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants