Skip to content

Workflow Run Referenced an Incorrect Artifact #265

@robronayne

Description

@robronayne

I am using this GitHub Action in one of my workflows in order to retrieve and execute SQL scripts that were created during a previous job. However, I noticed that in one scenario of using this action, it retrieved the wrong GitHub artifact.

With the parameters that I used in my workflow, the action should only retrieve the artifacts that are associated with the current PR.

- name: Download Resource Deployment Scripts
        id: download-artifact
        uses: dawidd6/action-download-artifact@v2
        with:
          workflow_conclusion: success
          pr: ${{github.event.pull_request.number}}
          name: sql-script
          check_artifacts: false
          if_no_artifact_found: fail

However, during one of its runs on PR #941 it appears to have retrieved an artifact that was associated with PR #956.

This is the workflow run from PR #941 that retrieved the incorrect artifact. The artifact it retrieved was 1057981208.

Screenshot 2023-12-26 at 3 23 38 PM

This is the artifact where it originally appears, as attached to a workflow related to a separate PR.

Screenshot 2023-12-26 at 3 22 24 PM

I will also be reaching out to GitHub directly to see if there is any more information that I can relay back to you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions