Skip to content

feat: set version inline when already pinned #102

@esacteksab

Description

@esacteksab

If you have an action or workflow already using a SHA and you run gh actlock it responds with

workflows/trivy-build-and-scan-docker-image.yml@85d3a1fb043d286a1d6b787814ec782dd415b169' on line 15 already pinned to SHA: 85d3a1fb043d286a1d6b787814ec782dd415b169

The desired outcome would be:

workflows/trivy-build-and-scan-docker-image.yml@85d3a1fb043d286a1d6b787814ec782dd415b169' on line 15 already pinned to SHA: 85d3a1fb043d286a1d6b787814ec782dd415b169  # vX.Y.Z

The SHA is for the computer. The version is for the human.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions