Skip to content

[0.1.7-rc1] --no-migrate-local-actions removes action references from lock file #121

Description

@jessehouwing

In a repo that relies on ./ references for which I haven't figured out yet how to replace them, I run

azdo-marketplace  gh actions-lock --rescan --no-migrate-local-actions
  ! LOCAL-ACTION .github\workflows\release-test-github-actions.yml
    workflow uses local path actions which are not supported; remove local path actions to continue using the lockfile
✗ 1 of 13 workflows failed: 1 local-action

After the run the lock file is overwritten and for .github\workflows\release-test-github-actions.yml all action refs are removed:

- '.github/workflows/release-test-github-actions.yml':
-        - 'actions/checkout@v7.0.1'
-        - 'actions/setup-node@v7.0.0'
-        - 'azure/login@v3.0.2'
+ '.github/workflows/release-test-github-actions.yml': []

And the workflow fails.

When I run without --no-migrate-local-actions the removed refs are restored:

 '.github/workflows/release-test-github-actions.yml':
        - 'actions/checkout@v7.0.1'
        - 'actions/setup-node@v7.0.0'
        - 'azure/login@v3.0.2'

And after manually replacing $/->./ the workflow runs again as expected.

Metadata

Metadata

Assignees

No one assigned

    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