Skip to content

Commit 74be6d3

Browse files
committed
Add a README recommendation to pin action versions
1 parent 9cebe9a commit 74be6d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ To use the action add the following step to your workflow file (e.g.
1818
password: ${{ secrets.pypi_password }}
1919
```
2020
21+
> **Pro tip**: instead of using branch pointers, like `master`, pin versions of
22+
Actions that you use to tagged versions or sha1 commit identifiers. This will
23+
make your workflows more secure and better reproducible, saving you from sudden
24+
and unpleasant surprises.
25+
2126
A common use case is to upload packages only on a tagged commit, to do so add a
2227
filter to the step:
2328

0 commit comments

Comments
 (0)