← Back to issue list

ci: Set workflow-level read permissions for QA workflow

View original Github issue

Metadata

Project
debcraft
Number
#194
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

PR #194 merged: added workflow-level read permissions (actions, contents, pull-requests) to .github/workflows/qa.yaml and removed lint job-level overrides, fixing Starflow reusable workflow compilation on PRs.

Resolution: closed resolved

Reason: The PR itself was merged into the default branch with 1 approving review and all19 CI checks green (+5/-3 lines, 1 file). The change grants read-only actions/contents/pull-requests scopes at workflow level so canonical/starflow reusable workflows invoked by the QA workflow compile.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The QA workflow invokes reusable workflows from `canonical/starflow` (such as `lint-python.yaml`), which require read access for repository contents and pull request metadata. Because these scopes are purely read-only, this updates `.github/workflows/qa.yaml` to configure workflow-level read permissions: - `actions: read` - `contents: read` - `pull-requests: read` • **What changed**: • Added a top-level `permissions` block with read scopes for actions, contents, and pull requests. • Removed job-local permission overrides under `lint:` so jobs inherit these scopes cleanly. • **Why this matters**: • Resolves workflow compilation failures on pull request runs where Starflow reusable workflows require `pull-requests: read`. • Follows the workflow-level read-only permission pattern used across Starflow-enabled repositories.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #194 merged: added workflow-level read permissions (actions, contents, pull-requests) to .github/workflows/qa.yaml and removed lint job-level overrides, fixing Starflow reusable workflow compilation on PRs.
stealth/space-bunny-alpha — closed resolved PR merged: added workflow-level read permissions (actions, contents, pull-requests) to .github/workflows/qa.yaml and dropped lint job-level overrides, so canonical/starflow reusable workflows compile on PRs.
stealth/space-bunny-alpha — closed resolved Read-only QA workflow permissions were merged in canonical/starbase#557; the matching change passed all CI checks.

Update history

Date Change
updated
closed
created

Related work

  • Related To: canonical/craft-cli#487 (confidence 82%)

    Identical title and change applied to craft-cli's .github/workflows/qa.yaml; same Starflow permissions rollout.

  • Related To: canonical/craft-artifacts#94 (confidence 82%)

    Same workflow-level read permissions change, merged as df2d092, part of the repo-wide Starflow QA permissions rollout.

  • Related To: canonical/craft-archives#257 (confidence 82%)

    Same change including removal of lint job-level overrides to fix Starflow workflow compilation.

  • Related To: canonical/charmcraft#2885 (confidence 65%)

    Attempted fix for the same QA reusable workflow permission problem in charmcraft; closed in favour of canonical/starbase#557's merged workflow-level permissions.

Related issues

Issue Project State Summary Similarity
#428 ci: Set workflow-level read permissions for QA workflow craft-store merged Merged as commit 4aabe63: .github/workflows/qa.yaml now sets workflow-level read permissions (actions, contents, pull-requests) and drops job-local lint overrides, fixing Starflow QA workflow failures on PRs.
97%
#487 ci: Set workflow-level read permissions for QA workflow craft-cli merged PR #487 merged: added workflow-level read permissions (actions, contents, pull-requests) to .github/workflows/qa.yaml so canonical/starflow reusable workflows compile; approved with all CI checks green (+5/-0 lines, 1 file).
96%
#257 ci: Set workflow-level read permissions for QA workflow craft-archives merged PR #257 by lengau merged as commit 7179169: moved QA workflow permissions to workflow-level read scopes (actions, contents, pull-requests) and dropped job-local lint overrides, fixing Starflow reusable workflow compilation on PRs.
95%
#94 ci: Set workflow-level read permissions for QA workflow craft-artifacts merged Merged PR #94 as df2d092, adding workflow-level read permissions for actions, contents, and pull requests so QA's Starflow reusable workflows can access required metadata.
93%
#1016 ci: Set workflow-level read permissions for QA workflow craft-providers merged Merged to main via commit a533e67 "ci: Add missing permissions to QA workflow (#1016)", adding workflow-level read permissions (actions, contents, pull-requests) to .github/workflows/qa.yaml.
92%
#557 ci: set read permissions for qa workflow starbase merged Merged PR #557 as commit cd8d487, granting the QA workflow read-only contents and pull-request permissions so paths-filter can access GitHub APIs.
87%
#1371 ci: add explicit permissions on QA workflow rockcraft closed Merged explicit read permissions for actions, contents, and pull requests into the QA workflow in commit 559eb218, enabling Starflow path-filter jobs.
85%
#256 ci: Add missing permissions to QA lint workflow craft-archives merged Job-level lint permissions PR closed as redundant by maintainer lengau: workflow-level read permissions already configured on main; superseded by merged PR #257 setting workflow-level read permissions.
83%
#6438 ci: Add missing permissions to QA lint workflow snapcraft closed PR closed unmerged by lengau as redundant: the QA workflow (.github/workflows/qa.yaml) already grants workflow-level contents/pull-requests read permissions on main, so job-level permissions in the lint job were unnecessary.
82%
#1375 ci: Add missing permissions to QA lint workflow rockcraft closed PR #1375 (rockcraft) adding job-level contents/pull-requests read permissions to the QA lint workflow was closed unmerged by @lengau as redundant — the workflow's existing workflow-level permissions were already sufficient.
81%