Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .github/workflows/repo-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
workflow_dispatch:

permissions:
actions: read
contents: read
issues: write
pull-requests: read
Expand All @@ -14,6 +15,8 @@ jobs:
health-check:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
11 changes: 11 additions & 0 deletions tests/test_repo_health_workflow.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pathlib import Path


WORKFLOW = Path(".github/workflows/repo-health.yml")


def test_repo_health_workflow_authenticates_github_cli() -> None:
workflow = WORKFLOW.read_text(encoding="utf-8")

assert "actions: read" in workflow
assert "GH_TOKEN: ${{ github.token }}" in workflow