Skip to content

fix: grant workflows: write permission to update-template CI job#15

Merged
leandrogehlen merged 2 commits into
masterfrom
copilot/fix-github-actions-job-build
Jun 21, 2026
Merged

fix: grant workflows: write permission to update-template CI job#15
leandrogehlen merged 2 commits into
masterfrom
copilot/fix-github-actions-job-build

Conversation

Copilot AI commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

The Update Template CI job fails when pushing regenerated workflow files because GITHUB_TOKEN lacks the workflows permission by default, and the job falls back to it when GH_PAT is absent or insufficient.

Changes

  • .github/workflows/update-template.yml: Added explicit permissions block to the job:
permissions:
  contents: write
  workflows: write

Without workflows: write, GitHub rejects any push that creates or modifies files under .github/workflows/, which is exactly what upptime/uptime-monitor update-template does on every run.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build fix: grant workflows: write permission to update-template CI job Jun 21, 2026
Copilot AI requested a review from leandrogehlen June 21, 2026 10:48
@leandrogehlen leandrogehlen marked this pull request as ready for review June 21, 2026 10:48
@leandrogehlen leandrogehlen merged commit 26a376c into master Jun 21, 2026
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