Skip to content

Commit 4d7daa3

Browse files
lkfortunaCopilotjules-p
authored
adding digest information (#54811)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jules <19994093+jules-p@users.noreply.github.com>
1 parent 7c3f2d2 commit 4d7daa3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

content/actions/writing-workflows/choosing-what-your-workflow-does/storing-and-sharing-data-from-a-workflow.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,20 @@ If you download all workflow run's artifacts, a directory for each artifact is c
179179

180180
For more information on syntax, see the {% ifversion fpt or ghec %}[actions/download-artifact](https://github.com/actions/download-artifact) action{% else %} `actions/download-artifact` action on {% data variables.product.prodname_ghe_server %}{% endif %}.
181181

182+
{% ifversion fpt or ghec %}
183+
184+
## Validating artifacts
185+
186+
Every time the upload-artifact action is used it returns an output called `digest`. This is a SHA256 digest of the Artifact you uploaded during a workflow run.
187+
188+
When the download-artifact action is then used to download that artifact, it automatically calculates the digest for that downloaded artifact and validates that it matches the output from the upload-artifact step.
189+
190+
If the digest does not match, the run will display a warning in the UI and in the job logs.
191+
192+
To view the SHA256 digest you can open the logs for the upload-artifact job or check in the Artifact output that appears in the workflow run UI.
193+
194+
{% endif %}
195+
182196
## Passing data between jobs in a workflow
183197

184198
You can use the `upload-artifact` and `download-artifact` actions to share data between jobs in a workflow. This example workflow illustrates how to pass data between jobs in the same workflow. For more information, see the {% ifversion fpt or ghec %}[actions/upload-artifact](https://github.com/actions/upload-artifact) and [download-artifact](https://github.com/actions/download-artifact) actions{% else %} `actions/upload-artifact` and `download-artifact` actions on {% data variables.product.prodname_ghe_server %}{% endif %}.

0 commit comments

Comments
 (0)