Skip to content

Commit a7a9269

Browse files
committed
Specify full path to workflows in Dependabot configuration file
Dependabot supports managing GitHub Actions action dependencies of workflows. Previously, Dependabot had an unintuitive behavior where workflows were expected to be found in the `.github/workflows/` subfolder of the path specified via the `directory` key of the `dependabot.yml` configuration file, meaning that if you want Dependabot to check the workflows at `/.github/workflows/`, you had to set `directory: /`. This odd requirement has now been dropped. Even though backwards compatibility has been provided for `directory: /` specifically, I think the configuration file is easier to understand with the full path to the workflows set, especially in repositories (such as this one) where workflows are also present in another path.
1 parent efbe18c commit a7a9269

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/dependabot/README.md
77
# See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
88
- package-ecosystem: github-actions
9-
directory: / # Check the repository's workflows under /.github/workflows/
9+
directory: /.github/workflows/
1010
schedule:
1111
interval: daily
1212
labels:

workflow-templates/assets/dependabot/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/dependabot/README.md
77
# See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
88
- package-ecosystem: github-actions
9-
directory: / # Check the repository's workflows under /.github/workflows/
9+
directory: /.github/workflows/
1010
schedule:
1111
interval: daily
1212
labels:

0 commit comments

Comments
 (0)