[GH-ISSUE #536] a step cannot be allowed have both the uses and run keys #363

Closed
opened 2026-03-01 21:42:40 +03:00 by kerem · 1 comment
Owner

Originally created by @kdomanski on GitHub (Feb 17, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/536

When I run a step that has both the uses and run keys defined, Github fails the build with message:

a step cannot have both the `uses` and `run` keys

act on the other hand silently ignores uses and continues.

Act version

Master 0.2.20-2-g9bf37fb

Expected behaviour

act should fail the build and return a message similar to what Github returns.

Actual behaviour

The step is executed with the value of uses ignored.

Workflow and/or repository

workflow
name: 'Build for ESP32'

on: [push, pull_request]

jobs:
  build:
    name: Build with ESP-IDF toolchain image
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: docker://espressif/idf:release-v3.3
      run: |
        idf.py build

The step attempts to execute the comand idf.py build in the current docker image, the image which actually contains the tool (espressif/idf:release-v3.3) is not used.

act output

Log
[Build for ESP32/Build ESP-IDF toolchain image] 🚀  Start image=catthehacker/ubuntu:act-latest
[Build for ESP32/Build ESP-IDF toolchain image]   🐳  docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Build for ESP32/Build ESP-IDF toolchain image]   🐳  docker cp src=/home/kdomanski/xxx/. dst=/github/workspace
[Build for ESP32/Build ESP-IDF toolchain image] ⭐  Run actions/checkout@v1
[Build for ESP32/Build ESP-IDF toolchain image]   ✅  Success - actions/checkout@v1
[Build for ESP32/Build ESP-IDF toolchain image] ⭐  Run docker://espressif/idf:release-v3.3
| /github/workflow/1: line 1: idf.py: command not found
[Build for ESP32/Build ESP-IDF toolchain image]   ❌  Failure - docker://espressif/idf:release-v3.3
Error: exit with `FAILURE`: 127

Originally created by @kdomanski on GitHub (Feb 17, 2021). Original GitHub issue: https://github.com/nektos/act/issues/536 When I run a step that has both the `uses` and `run` keys defined, Github fails the build with message: ``` a step cannot have both the `uses` and `run` keys ``` `act` on the other hand silently ignores `uses` and continues. ## Act version Master `0.2.20-2-g9bf37fb` ## Expected behaviour `act` should fail the build and return a message similar to what Github returns. ## Actual behaviour The step is executed with the value of `uses` ignored. ## Workflow and/or repository <details> <summary>workflow</summary> ```none name: 'Build for ESP32' on: [push, pull_request] jobs: build: name: Build with ESP-IDF toolchain image runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: docker://espressif/idf:release-v3.3 run: | idf.py build ``` The step attempts to execute the comand `idf.py build` in the current docker image, the image which actually contains the tool (`espressif/idf:release-v3.3`) is not used. ## `act` output <!-- Paste output from your terminal, use `-v` or `--verbose` for richer output --> <details> <summary>Log</summary> ```none [Build for ESP32/Build ESP-IDF toolchain image] 🚀 Start image=catthehacker/ubuntu:act-latest [Build for ESP32/Build ESP-IDF toolchain image] 🐳 docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Build for ESP32/Build ESP-IDF toolchain image] 🐳 docker cp src=/home/kdomanski/xxx/. dst=/github/workspace [Build for ESP32/Build ESP-IDF toolchain image] ⭐ Run actions/checkout@v1 [Build for ESP32/Build ESP-IDF toolchain image] ✅ Success - actions/checkout@v1 [Build for ESP32/Build ESP-IDF toolchain image] ⭐ Run docker://espressif/idf:release-v3.3 | /github/workflow/1: line 1: idf.py: command not found [Build for ESP32/Build ESP-IDF toolchain image] ❌ Failure - docker://espressif/idf:release-v3.3 Error: exit with `FAILURE`: 127 ``` </details>
kerem 2026-03-01 21:42:40 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2021):

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

<!-- gh-comment-id:803205888 --> @github-actions[bot] commented on GitHub (Mar 20, 2021): Issue is stale and will be closed in 14 days unless there is new activity
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#363
No description provided.