[GH-ISSUE #322] actions-checkout@v1 failure #228

Closed
opened 2026-03-01 21:41:30 +03:00 by kerem · 7 comments
Owner

Originally created by @lrettig on GitHub (Jul 27, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/322

Hello,

I have a workflow that contains the following job:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@v1
      with:
        ref: master

I get the following error when I try to run this:

[CI/build]   ❌  Failure - checkout
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
Error: The runs.using key must be one of: [docker node12], got
> act --version
act version 0.2.10

Here's a full log for this job:

> act pull_request -v
...
[CI/build] ⭐  Run checkout
DEBU[0001] Loading slug from git directory '/Users/user/foobar/.git'
DEBU[0001] Found revision: 875ba070d4d469da65d6157723cb1a93d96f9c23
DEBU[0001] Loading revision from git directory '/Users/user/foobar/.git'
DEBU[0001] Found revision: 875ba070d4d469da65d6157723cb1a93d96f9c23
DEBU[0001] HEAD points to '875ba070d4d469da65d6157723cb1a93d96f9c23'
DEBU[0001] HEAD matches refs/heads/update-go-version
DEBU[0001] using github ref: refs/heads/update-go-version
[CI/build]   ☁  git clone 'https://github.com/actions/checkout' # ref=v1
[CI/build]   cloning https://github.com/actions/checkout to /Users/user/.cache/act/actions-checkout@v1
[CI/build] Cloned https://github.com/actions/checkout to /Users/user/.cache/act/actions-checkout@v1
[CI/build] Checked out v1
DEBU[0001] Read action &{Checkout  Checkout a Git repository. map[clean:{If true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching false true} fetch-depth:{The depth of commits to ask Git to fetch; defaults to no limit false } lfs:{Whether to download Git-LFS files; defaults to false false } path:{Optional path to check out source code false } ref:{Ref to checkout (SHA, branch, tag) false } repository:{Repository name false } submodules:{Whether to include submodules: false to exclude submodules, true to include only one level of submodules, or recursive to recursively clone submodules; defaults to false false } token:{Access token for clone repository false }] map[] { map[]   [] []} { }} from '/Users/user/.cache/act/actions-checkout@v1/action.yml'
DEBU[0001] About to run action &{Checkout  Checkout a Git repository. map[clean:{If true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching false true} fetch-depth:{The depth of commits to ask Git to fetch; defaults to no limit false } lfs:{Whether to download Git-LFS files; defaults to false false } path:{Optional path to check out source code false } ref:{Ref to checkout (SHA, branch, tag) false } repository:{Repository name false } submodules:{Whether to include submodules: false to exclude submodules, true to include only one level of submodules, or recursive to recursively clone submodules; defaults to false false } token:{Access token for clone repository false }] map[] { map[]   [] []} { }}
DEBU[0001] type=3 actionDir=/Users/user/.cache/act/actions-checkout@v1 Workdir=/Users/user/smesh/api ActionCacheDir=/Users/user/.cache/act actionName=actions-checkout@v1 containerActionDir=/actions
[CI/build]   ❌  Failure - checkout
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
DEBU[0001] The runs.using key must be one of: [docker node12], got
Error: The runs.using key must be one of: [docker node12], got
Originally created by @lrettig on GitHub (Jul 27, 2020). Original GitHub issue: https://github.com/nektos/act/issues/322 Hello, I have a workflow that contains the following job: ``` jobs: build: runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v1 with: ref: master ``` I get the following error when I try to run this: ``` [CI/build] ❌ Failure - checkout DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got Error: The runs.using key must be one of: [docker node12], got ``` ``` > act --version act version 0.2.10 ``` Here's a full log for this job: ``` > act pull_request -v ... [CI/build] ⭐ Run checkout DEBU[0001] Loading slug from git directory '/Users/user/foobar/.git' DEBU[0001] Found revision: 875ba070d4d469da65d6157723cb1a93d96f9c23 DEBU[0001] Loading revision from git directory '/Users/user/foobar/.git' DEBU[0001] Found revision: 875ba070d4d469da65d6157723cb1a93d96f9c23 DEBU[0001] HEAD points to '875ba070d4d469da65d6157723cb1a93d96f9c23' DEBU[0001] HEAD matches refs/heads/update-go-version DEBU[0001] using github ref: refs/heads/update-go-version [CI/build] ☁ git clone 'https://github.com/actions/checkout' # ref=v1 [CI/build] cloning https://github.com/actions/checkout to /Users/user/.cache/act/actions-checkout@v1 [CI/build] Cloned https://github.com/actions/checkout to /Users/user/.cache/act/actions-checkout@v1 [CI/build] Checked out v1 DEBU[0001] Read action &{Checkout Checkout a Git repository. map[clean:{If true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching false true} fetch-depth:{The depth of commits to ask Git to fetch; defaults to no limit false } lfs:{Whether to download Git-LFS files; defaults to false false } path:{Optional path to check out source code false } ref:{Ref to checkout (SHA, branch, tag) false } repository:{Repository name false } submodules:{Whether to include submodules: false to exclude submodules, true to include only one level of submodules, or recursive to recursively clone submodules; defaults to false false } token:{Access token for clone repository false }] map[] { map[] [] []} { }} from '/Users/user/.cache/act/actions-checkout@v1/action.yml' DEBU[0001] About to run action &{Checkout Checkout a Git repository. map[clean:{If true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching false true} fetch-depth:{The depth of commits to ask Git to fetch; defaults to no limit false } lfs:{Whether to download Git-LFS files; defaults to false false } path:{Optional path to check out source code false } ref:{Ref to checkout (SHA, branch, tag) false } repository:{Repository name false } submodules:{Whether to include submodules: false to exclude submodules, true to include only one level of submodules, or recursive to recursively clone submodules; defaults to false false } token:{Access token for clone repository false }] map[] { map[] [] []} { }} DEBU[0001] type=3 actionDir=/Users/user/.cache/act/actions-checkout@v1 Workdir=/Users/user/smesh/api ActionCacheDir=/Users/user/.cache/act actionName=actions-checkout@v1 containerActionDir=/actions [CI/build] ❌ Failure - checkout DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got DEBU[0001] The runs.using key must be one of: [docker node12], got Error: The runs.using key must be one of: [docker node12], got ```
Author
Owner

@benwinding commented on GitHub (Aug 17, 2020):

The error message is very unclear, but it seems to refer to the action (from a step) and it's metadata.yaml file:

If you have access to the action.yaml

runs:
  using: 'docker'

I was able to edit it, because it was a local github action (like this)

<!-- gh-comment-id:674682717 --> @benwinding commented on GitHub (Aug 17, 2020): The error message is very unclear, but it seems to refer to the action (from a step) and it's [`metadata.yaml` file](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsusing-1): If you have access to the `action.yaml` ``` yaml runs: using: 'docker' ``` I was able to edit it, because it was a local github action ([like this](https://github.com/nektos/act/issues/307#issuecomment-674686264))
Author
Owner

@github-actions[bot] commented on GitHub (Oct 17, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:710708780 --> @github-actions[bot] commented on GitHub (Oct 17, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@akielbowicz commented on GitHub (Feb 23, 2021):

Had a similar error but on an action that I didn't own :( . Hope that it's resolved with #339

<!-- gh-comment-id:784565670 --> @akielbowicz commented on GitHub (Feb 23, 2021): Had a similar error but on an action that I didn't own :( . Hope that it's resolved with #339
Author
Owner

@TAnas0 commented on GitHub (Jun 9, 2021):

@akielbowicz I don't think it has been resolved with that PR. I am using the currently most recent realease 0.2.22 and still facing the same error on the checkout action.

To be more precise, it is referencing this YAML file https://github.com/actions/checkout/blob/releases/v1/action.yml which is lacking the runs.using attribute.

If you use the v2 in your Github Action YAML (- uses: actions/checkout@v2), you can get rid of the error message.
I am not sure if act wants to support the v1 or if it is relevant to #339, I am leaving this here if someone faces the same issue

<!-- gh-comment-id:858087234 --> @TAnas0 commented on GitHub (Jun 9, 2021): @akielbowicz I don't think it has been resolved with that PR. I am using the currently most recent realease `0.2.22` and still facing the same error on the checkout action. To be more precise, it is referencing this YAML file https://github.com/actions/checkout/blob/releases/v1/action.yml which is lacking the `runs.using` attribute. If you use the `v2` in your Github Action YAML (`- uses: actions/checkout@v2`), you can get rid of the error message. I am not sure if `act` wants to support the `v1` or if it is relevant to #339, I am leaving this here if someone faces the same issue
Author
Owner

@catthehacker commented on GitHub (Aug 17, 2021):

actions/checkout@v1 is using a plugin, which is something exclusive to GitHub runners. There are no plans to support that version since v2 works fine.

<!-- gh-comment-id:900359125 --> @catthehacker commented on GitHub (Aug 17, 2021): `actions/checkout@v1` is using a plugin, which is something exclusive to GitHub runners. There are no plans to support that version since `v2` works fine.
Author
Owner

@manoadamro commented on GitHub (May 18, 2022):

same thing today with actions/checkout@v3

<!-- gh-comment-id:1130224769 --> @manoadamro commented on GitHub (May 18, 2022): same thing today with `actions/checkout@v3`
Author
Owner

@catthehacker commented on GitHub (May 18, 2022):

Please open new issue which is definitely a different issue

<!-- gh-comment-id:1130259588 --> @catthehacker commented on GitHub (May 18, 2022): Please open new issue which is definitely a different issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#228
No description provided.