Skip to content

fix: use allow instead of ignore for dependency-type in dependabot config#1057

Open
chaptersix wants to merge 3 commits into
temporalio:mainfrom
chaptersix:fix/dependabot-config-validation
Open

fix: use allow instead of ignore for dependency-type in dependabot config#1057
chaptersix wants to merge 3 commits into
temporalio:mainfrom
chaptersix:fix/dependabot-config-validation

Conversation

@chaptersix
Copy link
Copy Markdown
Contributor

@chaptersix chaptersix commented May 29, 2026

Summary

  • dependency-type is only valid inside allow, not ignore in dependabot.yml
  • Replaces the invalid ignore entry with allow: [{dependency-type: direct}] to achieve the same goal of skipping indirect/transitive dependency updates
  • Adds a CI workflow using check-jsonschema to validate dependabot.yml on PRs and pushes to main
  • Fixes the Dependabot config validation failure introduced in chore: improve dependabot config #1044

Test plan

  • Verify the .github/dependabot.yml validation check passes on this PR
  • Verify check-jsonschema --builtin-schema vendor.dependabot .github/dependabot.yml passes locally

…nfig

dependency-type is only valid inside allow, not ignore. Use
allow with dependency-type: direct to exclude indirect deps.
@chaptersix chaptersix requested a review from a team as a code owner May 29, 2026 16:09
Uses check-jsonschema with the built-in vendor.dependabot schema
to catch invalid dependabot.yml configs in PRs and on push to main.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an invalid .github/dependabot.yml introduced in #1044 by replacing the unsupported dependency-type: indirect entry under ignore with an allow: [dependency-type: direct] entry, achieving the same intent (skip indirect/transitive Go updates) in a schema-valid way. Also adds a CI workflow that runs check-jsonschema against the built-in vendor.dependabot schema to catch similar regressions in the future.

Changes:

  • Replace invalid ignore.dependency-type: indirect with allow.dependency-type: direct in .github/dependabot.yml, retaining the Temporal name-based ignore.
  • Add .github/workflows/validate-dependabot.yml that runs check-jsonschema --builtin-schema vendor.dependabot on PRs and pushes to main that touch .github/dependabot.yml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/dependabot.yml Swap invalid ignore entry for an equivalent allow: direct rule.
.github/workflows/validate-dependabot.yml New workflow that validates dependabot.yml against the vendor schema via check-jsonschema.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +20 to +24
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
with:
python-version: '3.12'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants