[GH-ISSUE #169] Support artifacts #111

Closed
opened 2026-03-01 21:40:13 +03:00 by kerem · 25 comments
Owner

Originally created by @sandorex on GitHub (Mar 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/169

It would be really helpful if artifacts could be supported

Originally created by @sandorex on GitHub (Mar 25, 2020). Original GitHub issue: https://github.com/nektos/act/issues/169 It would be really helpful if artifacts could be supported
Author
Owner

@SteadBytes commented on GitHub (Apr 2, 2020):

👍 for supporting artifacts. Or at the very least it could be helpful to produce an explicit warning/error when these actions are used. AFAICT, a step using the artifact actions will succeed but no artifact will be uploaded/downloaded.

<!-- gh-comment-id:607729356 --> @SteadBytes commented on GitHub (Apr 2, 2020): :+1: for supporting artifacts. Or at the very least it could be helpful to produce an explicit warning/error when these actions are used. AFAICT, a step using the artifact actions will succeed but no artifact will be uploaded/downloaded.
Author
Owner

@cplee commented on GitHub (Apr 16, 2020):

Great call, good feature to add. Anyone have a sample workflow to use?

<!-- gh-comment-id:614938931 --> @cplee commented on GitHub (Apr 16, 2020): Great call, good feature to add. Anyone have a sample workflow to use?
Author
Owner

@jromero commented on GitHub (May 22, 2020):

This is use case we have in buildpacks/pack. We ultimately want to run test and build always and then use the artifacts for the release job.

The source can be found here:
Upload:
github.com/buildpacks/pack@c9745af053/.github/workflows/build.yml (L77-L81)

Download:
github.com/buildpacks/pack@c9745af053/.github/workflows/build.yml (L92-L104)

<!-- gh-comment-id:632647790 --> @jromero commented on GitHub (May 22, 2020): This is use case we have in [`buildpacks/pack`](https://github.com/buildpacks/pack/blob/master/.github/workflows/build.yml). We ultimately want to run test and build always and then use the artifacts for the release job. The source can be found here: Upload: https://github.com/buildpacks/pack/blob/c9745af053eabf812bf2fdab1695488a01022093/.github/workflows/build.yml#L77-L81 Download: https://github.com/buildpacks/pack/blob/c9745af053eabf812bf2fdab1695488a01022093/.github/workflows/build.yml#L92-L104
Author
Owner

@github-actions[bot] commented on GitHub (Jul 22, 2020):

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

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

@zaguiini commented on GitHub (Jul 22, 2020):

Is there any progress? Can I help with something?

<!-- gh-comment-id:662413398 --> @zaguiini commented on GitHub (Jul 22, 2020): Is there any progress? Can I help with something?
Author
Owner

@jromero commented on GitHub (Jul 22, 2020):

Typically these artifacts are shipped via the gh API and then referenced by url.

I don't know how other parts, if any, work with mocking or intercepting GH API calls but I would think that is necessary to properly mock this locally. Am I wrong?

<!-- gh-comment-id:662629585 --> @jromero commented on GitHub (Jul 22, 2020): Typically these artifacts are shipped via the gh API and then referenced by url. I don't know how other parts, if any, work with mocking or intercepting GH API calls but I would think that is necessary to properly mock this locally. Am I wrong?
Author
Owner

@krailler commented on GitHub (Jul 22, 2020):

How works actions/cache? Seems similar no?

<!-- gh-comment-id:662667051 --> @krailler commented on GitHub (Jul 22, 2020): How works actions/cache? Seems similar no?
Author
Owner

@wyTrivail commented on GitHub (Aug 6, 2020):

we also have the same issue while using upload-artifacts, we got the error

[CI/build]   💬  ::debug::Root artifact directory is /github/workspace/build
[CI/build]   ❗  ::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable
[CI/build]   ❌  Failure - Upload

it would be great if it can be mocked.

<!-- gh-comment-id:670202954 --> @wyTrivail commented on GitHub (Aug 6, 2020): we also have the same issue while using upload-artifacts, we got the error ``` [CI/build] 💬 ::debug::Root artifact directory is /github/workspace/build [CI/build] ❗ ::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable [CI/build] ❌ Failure - Upload ``` it would be great if it can be mocked.
Author
Owner

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

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

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

@wagenet commented on GitHub (Oct 13, 2020):

Seems like this should have remained open. It's a pretty big blocker for full use.

<!-- gh-comment-id:707836510 --> @wagenet commented on GitHub (Oct 13, 2020): Seems like this should have remained open. It's a pretty big blocker for full use.
Author
Owner

@ayozemr commented on GitHub (Dec 9, 2020):

Artifacts is one of those key actions that many workflows use, and bc of that its a blocker for local dev working... Having this along with cache support would make act the tool we all need to fully develop workflows locally, instead of running workflows to try things and waiting a lot of time

<!-- gh-comment-id:741911716 --> @ayozemr commented on GitHub (Dec 9, 2020): Artifacts is one of those key actions that many workflows use, and bc of that its a blocker for local dev working... Having this along with cache support would make act the tool we all need to fully develop workflows locally, instead of running workflows to try things and waiting a lot of time
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2021):

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

<!-- gh-comment-id:761279644 --> @github-actions[bot] commented on GitHub (Jan 16, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@ayozemr commented on GitHub (Jan 18, 2021):

Still waiting for this :-(

<!-- gh-comment-id:762298773 --> @ayozemr commented on GitHub (Jan 18, 2021): Still waiting for this :-(
Author
Owner

@catthehacker commented on GitHub (Jan 19, 2021):

It's a bit complicated since https://github.com/nektos/act/issues/329

<!-- gh-comment-id:762594571 --> @catthehacker commented on GitHub (Jan 19, 2021): It's a bit complicated since https://github.com/nektos/act/issues/329
Author
Owner

@github-actions[bot] commented on GitHub (Feb 19, 2021):

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

<!-- gh-comment-id:781725624 --> @github-actions[bot] commented on GitHub (Feb 19, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@nicolo-ribaudo commented on GitHub (Feb 19, 2021):

Sorry bot, I hate to just 👍 issues

<!-- gh-comment-id:782046453 --> @nicolo-ribaudo commented on GitHub (Feb 19, 2021): Sorry bot, I hate to just :+1: issues
Author
Owner

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

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

<!-- gh-comment-id:803691101 --> @github-actions[bot] commented on GitHub (Mar 22, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@CreMindES commented on GitHub (Mar 22, 2021):

Sorry bot, I hate to just +1 issues, but it's necessary in this case.

<!-- gh-comment-id:803855633 --> @CreMindES commented on GitHub (Mar 22, 2021): Sorry bot, I hate to just +1 issues, but it's necessary in this case.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 23, 2021):

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

<!-- gh-comment-id:825279649 --> @github-actions[bot] commented on GitHub (Apr 23, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@Smana commented on GitHub (Jun 10, 2021):

Hey, we still need a solution, either an artifact server or a mock.

<!-- gh-comment-id:858600449 --> @Smana commented on GitHub (Jun 10, 2021): Hey, we still need a solution, either an artifact server or a mock.
Author
Owner

@catthehacker commented on GitHub (Jun 10, 2021):

@Smana see #329

<!-- gh-comment-id:858611206 --> @catthehacker commented on GitHub (Jun 10, 2021): @Smana see #329
Author
Owner

@volleynerd commented on GitHub (Jun 24, 2021):

👍 for supporting artifacts. Or at the very least it could be helpful to produce an explicit warning/error when these actions are used. AFAICT, a step using the artifact actions will succeed but no artifact will be uploaded/downloaded.

The above is not true for me. Running 0.2.23 and seeing actions/upload-artifact fail with error ::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable

Agree that this is a great idea to support the goal - for typical workflows that run fine in GH will run in ACT without modification.

<!-- gh-comment-id:867961648 --> @volleynerd commented on GitHub (Jun 24, 2021): > 👍 for supporting artifacts. Or at the very least it could be helpful to produce an explicit warning/error when these actions are used. AFAICT, a step using the artifact actions will succeed but no artifact will be uploaded/downloaded. The above is not true for me. Running 0.2.23 and seeing actions/upload-artifact fail with error **::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable** Agree that this is a great idea to support the goal - for typical workflows that run fine in GH will run in ACT without modification.
Author
Owner

@JoshMcCullough commented on GitHub (May 16, 2023):

I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something?

I set up the artifact path/port in my act call. I'm using act-js.

NM, I see this now on the related PR: --env ACTIONS_RUNTIME_TOKEN=foo must be set (we do not have authentication implemented)

<!-- gh-comment-id:1550136573 --> @JoshMcCullough commented on GitHub (May 16, 2023): I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something? I set up the artifact path/port in my `act` call. I'm using act-js. NM, I see this now on the related PR: `--env ACTIONS_RUNTIME_TOKEN=foo` must be set (we do not have authentication implemented)
Author
Owner

@mcascone commented on GitHub (Aug 15, 2024):

I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something?

I set up the artifact path/port in my act call. I'm using act-js.

NM, I see this now on the related PR: --env ACTIONS_RUNTIME_TOKEN=foo must be set (we do not have authentication implemented)

i set this, using foo (probably incorrect), and now I get:
Error: authentication required

<!-- gh-comment-id:2292199926 --> @mcascone commented on GitHub (Aug 15, 2024): > I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something? > > I set up the artifact path/port in my `act` call. I'm using act-js. > > NM, I see this now on the related PR: `--env ACTIONS_RUNTIME_TOKEN=foo` must be set (we do not have authentication implemented) i set this, using `foo` (probably incorrect), and now I get: `Error: authentication required`
Author
Owner

@reducedhackers commented on GitHub (Oct 15, 2024):

I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something?
I set up the artifact path/port in my act call. I'm using act-js.
NM, I see this now on the related PR: --env ACTIONS_RUNTIME_TOKEN=foo must be set (we do not have authentication implemented)

i set this, using foo (probably incorrect), and now I get: Error: authentication required

was getting the same error , discovered I can pass GitHub token into the with: element of the step , remembering to keep in mind that the token in this case is stored in a secrets file

act --secret-file ./act/act.secrets -W ./.github/workflows/deploy_dev.yml

  • name: Download Release ZIP (if URL found)
    uses: actions/download-artifact@v4 # Use dedicated download action for security
    with:
    name: somartefacts.zip
    url: ${{ steps.get_download_url.outputs.download_url }}
    repository: ${{ github.repository }}
    github-token: ${{ secrets.GITHUB_TOKEN }}
<!-- gh-comment-id:2414351403 --> @reducedhackers commented on GitHub (Oct 15, 2024): > > I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something? > > I set up the artifact path/port in my `act` call. I'm using act-js. > > NM, I see this now on the related PR: `--env ACTIONS_RUNTIME_TOKEN=foo` must be set (we do not have authentication implemented) > > i set this, using `foo` (probably incorrect), and now I get: `Error: authentication required` was getting the same error , discovered I can pass GitHub token into the with: element of the step , remembering to keep in mind that the token in this case is stored in a secrets file act --secret-file ./act/act.secrets -W ./.github/workflows/deploy_dev.yml - name: Download Release ZIP (if URL found) uses: actions/download-artifact@v4 # Use dedicated download action for security with: name: somartefacts.zip url: ${{ steps.get_download_url.outputs.download_url }} repository: ${{ github.repository }} github-token: ${{ secrets.GITHUB_TOKEN }}
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#111
No description provided.