Summary
The Cleanup PR Artifacts workflow failure on Aug 4 (run #30917454422) was caused by the PAT_WORKFLOWS secret not being configured in the Lens repository at that time.
Root Cause Analysis
The workflow failed with "error parsing called workflow" at the GitHub Actions validation stage because:
- The Cleanup PR Artifacts workflow calls a reusable workflow from Cratis/Workflows
- The reusable workflow requires the
PAT_WORKFLOWS secret (defined with required: true)
- GitHub validates required secrets at workflow parse time, before any jobs are created
- If the secret is not available in the repository or inherited from the organization, the workflow fails immediately with a "workflow file issue" error
Timeline:
- Aug 4, 14:09 UTC: Run failed - secret was not configured
- Aug 26, 08:28 UTC: PR #79 in Cratis/Workflows removed the reusable workflow (accidentally)
- Aug 26, 17:42 UTC: PR #80 in Cratis/Workflows restored the reusable workflow
- Aug 28: Successful runs - indicates PAT_WORKFLOWS secret was configured by this point
Status
The workflow is now functioning correctly (recent successful runs on Aug 28+). The secret is properly configured at the organization or repository level, allowing the workflow to execute successfully.
Recommendation
Summary
The Cleanup PR Artifacts workflow failure on Aug 4 (run #30917454422) was caused by the PAT_WORKFLOWS secret not being configured in the Lens repository at that time.
Root Cause Analysis
The workflow failed with "error parsing called workflow" at the GitHub Actions validation stage because:
PAT_WORKFLOWSsecret (defined withrequired: true)Timeline:
Status
The workflow is now functioning correctly (recent successful runs on Aug 28+). The secret is properly configured at the organization or repository level, allowing the workflow to execute successfully.
Recommendation
read:packagesanddelete:packagesscopes (for classic PAT) orPackages read/write(for fine-grained PAT)