Skip to content

ci(repo-policy-sync): separate hourly plan and daily apply - #30

Merged
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:repo-cache-empty-repositories
Sep 4, 2026
Merged

ci(repo-policy-sync): separate hourly plan and daily apply#30
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:repo-cache-empty-repositories

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

Repository policy sync should detect drift frequently without allowing an hourly automation failure to create or update pull requests. Scheduling plan mode hourly and apply mode once daily provides frequent visibility while limiting remote mutations during the cautious rollout.

Changes:

  • Split the scheduled workflow into separate plan and apply jobs.
  • Run plan mode hourly and apply mode daily at 00:30 UTC.
  • Keep manual dispatch available for either mode.
  • Use the PAT for apply operations without granting extra GITHUB_TOKEN permissions.
  • Store plan and apply reports under separate artifact names.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The hourly cron uses GitHub Actions’ peak-load minute, increasing delayed or dropped drift checks.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Separates frequent drift detection from controlled daily policy application.

Changes:

  • Runs plan hourly and apply daily/manual.
  • Uses distinct authentication and report artifacts per mode.
File summaries
File Description
.github/workflows/repo-policy-sync.yml Splits plan and apply workflow jobs.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

schedule:
- cron: "0 0 * * *"
# Check for policy drift every hour in plan mode without changing repositories.
- cron: "0 * * * *"
@AlexanderLanin
AlexanderLanin merged commit 7466d17 into eclipse-score:main Sep 4, 2026
3 checks passed
@AlexanderLanin
AlexanderLanin deleted the repo-cache-empty-repositories branch September 4, 2026 10:39
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.

3 participants