Skip to content

Commit af5a2fa

Browse files
authored
Merge pull request #1 from kbukum1/patch-5
Update tag format guidance for GitHub Actions
2 parents 6d7770e + b273d6d commit af5a2fa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/code-security/dependabot/ecosystems-supported-by-dependabot/supported-ecosystems-and-repositories.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ If your repository already uses an integration for dependency management, you wi
4949

5050
If your repository contains multiple GitHub Actions (for example, in a monorepo), the tag format you use affects how {% data variables.product.prodname_dependabot %} detects and updates action versions.
5151

52-
- **Dash (-) separator (e.g. my-action-v0.1.0):**
53-
- {% data variables.product.prodname_dependabot %} may incorrectly update multiple actions or fail to detect new versions. This occurs because {% data variables.product.prodname_dependabot %} relies on Git’s hierarchical tag structure (using slashes) to distinguish between actions.
54-
- **Slash (`/`) separator (e.g., `my-action/v0.1.0`):**
55-
- {% data variables.product.prodname_dependabot %} correctly detects and updates each action independently, as the slash creates a hierarchical tag that aligns with Git’s ref format rules.
52+
- **Dash (-) separator (e.g., `@my-action-v0.1.0`):**
53+
- {% data variables.product.prodname_dependabot %} may group multiple actions under a single dependency entry or fail to detect new versions correctly. This occurs because {% data variables.product.prodname_dependabot %} relies on slash-based tag parsing to distinguish between actions.
54+
- **Slash (`/`) separator (e.g., `@my-action/v0.1.0`):**
55+
- {% data variables.product.prodname_dependabot %} correctly detects and updates each action independently, as the slash creates a hierarchical tag structure that aligns with {% data variables.product.prodname_dependabot %}'s parsing logic.
5656

57-
**Example**:
57+
**Example**:
5858
```yaml
5959
# Recommended: namespaced with slash
60-
uses: my-org/my-action-a/v0.1.0
60+
uses: my-org/monorepo/my-action@my-action/v0.1.0
6161

6262
# Not recommended: dash
63-
uses: my-org/my-action-a-v0.1.0
63+
uses: my-org/monorepo@my-action-v0.1.0
6464
```
6565
6666
**Recommendation:**

0 commit comments

Comments
 (0)