Update "Restrictions for accessing a cache" - make clear that cache entries are shared between workflows #9311
+5
−3
Conversation
0212b23
to
df42f94
…entries created in one workflow are accessable for another, for the same branch
df42f94
to
26a737f
|
@magnetikonline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


Why:
Closes #9310
Here are the two example workflows used (in the same repository of course) to prove this:
So basically, triggering workflow
Onewill populate a new cache entry ofcache-key-01. ExecutingTwoafterwards will happily pull thecache-key-01with the contentsworkflow-one-itemright away. There is no isolation or namespacing between the workflows.I think this is good to know and can be a powerful item for the toolkit - but also could be causing troubles for some if taking the current documentation as absolute.
What's being changed:
Clearing up the documentation around Restrictions for accessing a cache to make it clear that sharing of cache entries between workflows within the same repository for the same branch is very much possible.
This is the key line I've added:
Check off the following:
Writer impact (This section is for GitHub staff members only):