Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/leaderboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ on:
# Manual trigger for testing
workflow_dispatch:

permissions:
contents: read

jobs:
# Job 1: Validate leaderboard submissions (PR only)
validate:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read # Checkout PR branch
pull-requests: write # Post validation results as PR comment
issues: write # Required by github-script (PRs are issues in GH API)
steps:
- name: Checkout PR branch
uses: actions/checkout@v6
Expand Down Expand Up @@ -178,6 +185,8 @@ jobs:
update:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write # Commit and push updated leaderboard data
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down
Loading