Skip to content

feat: skip policy evaluation when status is called from attestation init #2761

@migmartri

Description

@migmartri

Problem

When running attestation init, the CLI automatically calls attestation status afterward to display the initial state. The status action evaluates attestation-level policies against an empty attestation statement. This stops being an optimization now that we are doing API calls using built-in functions, in which case we were doing them at init and at push.

Proposed solution

Pass WithSkipPolicyEvaluation() to the statusAction.Run() call inside the init command. The mechanism already exists in the status action, it's just not being used from init.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions