Skip to content

Commit 2d0f1ab

Browse files
[Ready to ship on March 4] Adding workflow note about dependabot token (#17918)
* adding workflows note about dependabot token * reworded a little to make active * Update data/reusables/actions/workflow-runs-dependabot-note.md Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com> Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
1 parent b234274 commit 2d0f1ab

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

content/actions/reference/authentication-in-a-workflow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ For information about the API endpoints {% data variables.product.prodname_githu
9595
| repository projects | read/write | read |
9696
| statuses | read/write | read |
9797

98+
{% data reusables.actions.workflow-runs-dependabot-note %}
99+
98100
If you need a token that requires permissions that aren't available in the `GITHUB_TOKEN`, you can create a personal access token and set it as a secret in your repository:
99101

100102
1. Use or create a token with the appropriate permissions for that repository. For more information, see "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)."

content/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ versions:
1313

1414
Actions are often updated with bug fixes and new features to make automated processes more reliable, faster, and safer. When you enable {% data variables.product.prodname_dependabot_version_updates %} for {% data variables.product.prodname_actions %}, {% data variables.product.prodname_dependabot %} will help ensure that references to actions in a repository's *workflow.yml* file are kept up to date. For each action in the file, {% data variables.product.prodname_dependabot %} checks the action's reference (typically a version number or commit identifier associated with the action) against the latest version. If a more recent version of the action is available, {% data variables.product.prodname_dependabot %} will send you a pull request that updates the reference in the workflow file to the latest version. For more information about {% data variables.product.prodname_dependabot_version_updates %}, see "[About {% data variables.product.prodname_dependabot_version_updates %}](/github/administering-a-repository/about-dependabot-version-updates)." For more information about configuring workflows for {% data variables.product.prodname_actions %}, see "[Learn {% data variables.product.prodname_actions %}](/actions/learn-github-actions)."
1515

16+
{% data reusables.actions.workflow-runs-dependabot-note %}
17+
1618
### Enabling {% data variables.product.prodname_dependabot_version_updates %} for actions
1719

1820
{% data reusables.dependabot.create-dependabot-yml %} If you have already enabled {% data variables.product.prodname_dependabot_version_updates %} for other ecosystems or package managers, simply open the existing *dependabot.yml* file.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% if currentVersion == "free-pro-team@latest" %}
2+
{% note %}
3+
4+
**Note:** Pull requests for {% data variables.product.prodname_dependabot %} version updates will trigger workflow runs with a read-only `GITHUB_TOKEN`. These workflow runs will not be granted access to any secrets.
5+
6+
{% endnote %}
7+
{% endif %}

0 commit comments

Comments
 (0)