Skip to content

Guard Update Examples Cron on non-grafana forks#14

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-issue-in-pyroscope-job
Draft

Guard Update Examples Cron on non-grafana forks#14
Copilot wants to merge 2 commits intomainfrom
copilot/fix-issue-in-pyroscope-job

Conversation

Copy link

Copilot AI commented Feb 8, 2026

The scheduled “Update Examples” workflow fails on forks because Vault secrets aren’t accessible outside grafana.

  • Scope: Limit the update-examples-cron job to run only when github.repository_owner == 'grafana'.
  • Outcome: Prevents secret fetch attempts (and resulting 401s) on forked repos; no functional code changes.

Example adjustment:

jobs:
  update-examples-cron:
    if: ${{ github.repository_owner == 'grafana' }}
    runs-on: ${{ github.repository_owner == 'grafana' && 'ubuntu-x64-small' || 'ubuntu-latest' }}
    steps:
      - uses: actions/checkout@v5
      #
Original prompt

Reference: https://github.com/FuzzysTodd/pyroscope/actions/runs/21789291788/job/62870634627


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: FuzzysTodd <157565446+FuzzysTodd@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue in Pyroscope job execution Guard Update Examples Cron on non-grafana forks Feb 8, 2026
Copilot AI requested a review from FuzzysTodd February 8, 2026 03:14
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