Skip to content

Commit 94e3ae5

Browse files
authored
docs: add note about permissive GITHUB_TOKEN
1 parent ba6a508 commit 94e3ae5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A GitHub Action for deleting artifacts within the workflow run. This can be usef
1717
See [action.yml](action.yml)
1818

1919
> [!IMPORTANT]
20-
> Support for `actions/upload-artifact@v4` utilizes GitHub's REST API, and requires a token with read and write access to actions.
20+
> Support for `actions/upload-artifact@v4` utilizes the GitHub REST API, and requires a permissive [`GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token), or a PAT with read and write access to actions.
2121
2222
### Delete an individual artifact
2323

@@ -36,7 +36,7 @@ steps:
3636

3737
- uses: geekyeggo/delete-artifact@v4
3838
with:
39-
token: ${{ secrets.TOKEN }}
39+
token: ${{ secrets.GITHUB_TOKEN }}
4040
name: my-artifact
4141
```
4242
@@ -46,7 +46,7 @@ steps:
4646
steps:
4747
- uses: geekyeggo/delete-artifact@v4
4848
with:
49-
token: ${{ secrets.TOKEN }}
49+
token: ${{ secrets.GITHUB_TOKEN }}
5050
name: |
5151
artifact-*
5252
binary-file
@@ -61,7 +61,7 @@ By default, the action will fail when it was not possible to delete an artifact
6161
steps:
6262
- uses: geekyeggo/delete-artifact@v4
6363
with:
64-
token: ${{ secrets.TOKEN }}
64+
token: ${{ secrets.GITHUB_TOKEN }}
6565
name: okay-to-keep
6666
failOnError: false
6767
```

0 commit comments

Comments
 (0)