Skip to content

Analysis of Cleanup PR Artifacts workflow failure #33

Description

@cratis-direct

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:

  1. The Cleanup PR Artifacts workflow calls a reusable workflow from Cratis/Workflows
  2. The reusable workflow requires the PAT_WORKFLOWS secret (defined with required: true)
  3. GitHub validates required secrets at workflow parse time, before any jobs are created
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions