Confirmed users
1,364
edits
(updated with 'actions/checkout' tip) |
(more recommendations for least privilege) |
||
Line 16: | Line 16: | ||
# As always, enforce “least privilege” wherever possible. | # As always, enforce “least privilege” wherever possible. | ||
#* Explicitly set "<code>persist-credentials: false</code>" when using the "<code>actions/checkout</code>" action. (Prevent hidden state.) | #* Explicitly set "<code>persist-credentials: false</code>" when using the "<code>actions/checkout</code>" action. (Prevent hidden state.) | ||
#* Explicitly unset <tt>GITHUB_TOKEN</tt> when not needed at the workflow or job level with "<code>permissions: {}</code>". | |||