Last 12 weeks Β· 6 commits
2 of 6 standards met
is empty on scheduled/manual runs, causing checkout and auto-commit to target the wrong branch. The workflow also relied on a PAT () for push access instead of the built-in token. Changes Permissions β added at workflow level so can push commits Checkout β replaced with ; hardcoded instead of Auto-commit* β hardcoded instead of Original prompt Create a PR in to fix the nightly stats workflow authentication/permissions. ## Context The workflow currently: checks out using and runs uses with For scheduled/manual runs, is empty, so checkout/commit may not target correctly. ## Requested changes 1) Add an explicit workflow block to allow pushes using the workflow token: (Minimum needed for committing/pushing.) 2) Switch pushing to use the default (not a PAT secret): Update the checkout step to use (or omit token entirely since checkout defaults to , but user explicitly requested passing it) Ensure we check out explicitly (use ) so scheduled/manual runs operate on the correct branch. 3) "Pass to ": Update the workflow so that any step that previously relied on instead uses the provided by Actions. If any references to remain, replace them appropriately. ## Non-goals / notes The stats collection script currently uses env var; do not remove it unless necessary for the workflow changes. Keep the existing secret usage for GitHub API calls (unless you discover itβs unnecessary or wrong, but this PR request is primarily about push permissions/auth). ## Files ## Acceptance criteria Workflow has explicit . Workflow uses branch explicitly for checkout and auto-commit. Workflow no longer uses and instead uses the built-in for pushing. This pull request was created from Copilot chat. π¬ We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Repository: withastro/astro-issues. Description: Issue stats for the withastro org Stars: 12, Forks: 2. Primary language: Astro. Languages: Astro (64.5%), TypeScript (25.4%), CSS (5.6%), JavaScript (4.5%). Homepage: https://issues.astro.build Open PRs: 0, open issues: 0. Last activity: 22h ago. Community health: 50%. Top contributors: github-actions[bot], Princesseuh, delucis, Copilot.