Skip to content

Commit df0c1e2

Browse files
committed
stub out qlhelp
1 parent 1c6d346 commit df0c1e2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
# Unpinned tag for 3rd party Action in workflow
1+
# Unversioned Immutable Action
22

33
## Description
44

5-
Using a tag for a 3rd party Action that is not pinned to a commit can lead to executing an untrusted Action through a supply chain attack.
5+
Using an immutable action without indicating proper semantic version will result in the version being resolved to a tag that is mutable. This means the action code can between runs and without the user's knowledge. Using an immutable action with proper semantic versioning will resolve to the exact version
6+
of the action stored in the GitHub package registry. The action code will not change between runs.
67

78
## Recommendations
89

9-
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
10+
When using [immutable actions]() use the full semantic version of the action. This will ensure that the action is resolved to the exact version stored in the GitHub package registry. This will prevent the action code from changing between runs.
1011

1112
## Examples
1213

1314
### Incorrect Usage
1415

1516
```yaml
16-
- uses: tj-actions/changed-files@v44
17+
- uses: actions/checkout@some-tag
18+
- uses: actions/[email protected]
1719
```
1820
1921
### Correct Usage
2022
2123
```yaml
22-
- uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c # v44
24+
- uses: actions/[email protected]
2325
```
2426
2527
## References
2628
27-
- [Using third-party actions](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions)
29+
- [Consuming immutable actions]()

0 commit comments

Comments
 (0)