Skip to content

Commit 0e03452

Browse files
am-steadjurre
andauthored
[2022-10-20]: Dependabot updates for Yarn v3 - [GA] (github#31471)
Co-authored-by: Jurre <[email protected]>
1 parent 58d7e10 commit 0e03452

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

content/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ registries:
860860

861861
The `npm-registry` type supports username and password, or token.
862862

863-
When using username and password, your `.npmrc`'s auth token may contain a `base64` encoded `_password`; however, the password referenced in your {% data variables.product.prodname_dependabot %} configuration file must be the original (unencoded) password.
863+
When using username and password, your `.npmrc`'s auth token may contain a `base64` encoded `_password`; however, the password referenced in your {% data variables.product.prodname_dependabot %} configuration file must be the original (unencoded) password.
864864

865865
{% raw %}
866866
```yaml
@@ -882,6 +882,8 @@ registries:
882882
token: ${{secrets.MY_GITHUB_PERSONAL_TOKEN}}
883883
```
884884
{% endraw %}
885+
{% ifversion dependabot-yarn-v3-update %}
886+
For security reasons, {% data variables.product.prodname_dependabot %} does not set environment variables. Yarn (v2 and later) requires that any accessed environment variables are set. When accessing environment variables in your `.yarnrc.yml` file, you should provide a fallback value such as {% raw %}`${ENV_VAR-fallback}`{% endraw %} or {% raw %}`${ENV_VAR:-fallback}`{% endraw %}. For more information, see [Yarnrc files](https://yarnpkg.com/configuration/yarnrc) in the Yarn documentation.{% endif %}
885887

886888
### `nuget-feed`
887889

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Reference: issue #8323
2+
# Updating supported versions of yarn
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>=3.8'
7+
ghae: '>= 3.8'

data/reusables/dependabot/supported-package-managers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ pip-compile | `pip` | 6.1.0 | | **✓** | |
2525
poetry | `pip` | v1 | | **** | |{% ifversion fpt or ghec or ghes > 3.4 %}
2626
pub | `pub` | v2 <sup>[4]</sup> | | | |{% endif %}
2727
Terraform | `terraform` | >= 0.13, <= 1.2.x | **** | **** | |
28-
yarn | `npm` | v1 | **** | **** | |
28+
{% ifversion dependabot-yarn-v3-update %}yarn | `npm` | v1, v2, v3 | **** | **** | ****<sup>[5]</sup> |{% else %}yarn | `npm` | v1 | **** | **** | |
29+
{% endif %}
2930

3031
{% tip %}
3132

@@ -47,3 +48,6 @@ yarn | `npm` | v1 | **✓** | **✓** | |
4748
For information about configuring your _dependabot.yml_ file for `pub`, see "[Enabling support for beta-level ecosystems](/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#enable-beta-ecosystems)."
4849
{%- else %}{% data variables.product.prodname_dependabot %} won't perform an update for `pub` when the version that it tries to update to is ignored, even if an earlier version is available.{% endif %}
4950
{% endif %}
51+
52+
{% ifversion dependabot-yarn-v3-update %}
53+
[5] Dependabot supports vendored dependencies for v2 onwards.{% endif %}

0 commit comments

Comments
 (0)