You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add support for locking actions that use YAML anchors #252
Current versions of actions-lock (as of v0.4.0) fail to detect and lock actions that use YAML anchors in the uses: field.
For example, the following configuration containing YAML anchors remains unhandled:
# `gh actions-lock` does not handle `uses:` that use YAML anchors
- name: Checkoutuses: &checkout-uses actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with: &checkout-withtoken: ...persist-credentials: ...# Run the same action again using the same version and the same parameters
- name: Checkout againuses: *checkout-useswith: *checkout-with
Proposed Feature
Implementation of YAML anchor parsing enables actions-lock to correctly detect and process these actions as lock targets.
The expected behavior involves processing such configurations as follows:
Activity