-
Notifications
You must be signed in to change notification settings - Fork 8
Add security update workflow for automated dependency fixes #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,49 @@ | ||||||||||||
| # Per-repo caller workflow. | ||||||||||||
| # Copy this file into each repo that should receive automated security fixes. | ||||||||||||
| # The reusable workflow lives in getditto/.github. | ||||||||||||
| # See TINES_AUTOMATION.md for the full design. | ||||||||||||
|
||||||||||||
| # See TINES_AUTOMATION.md for the full design. | |
| # See that reusable workflow for the full implementation details. |
Copilot
AI
Apr 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow is expected to create/update branches/PRs via the called workflow, but it doesn't declare explicit permissions. In this repo, workflows that create PRs set least-privilege write perms (e.g., .github/workflows/update-sdk-versions.yml:18-20). Consider adding explicit permissions here (at least contents: write and pull-requests: write, plus any other scopes the reusable workflow needs) so it both works reliably and avoids overly broad defaults.
| permissions: | |
| contents: write | |
| pull-requests: write |
Copilot
AI
Apr 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reusable workflow is referenced by a moving ref (@main). For a security-sensitive workflow that can open PRs and use secrets, this should be pinned to an immutable ref (commit SHA or a version tag) to avoid supply-chain risk and unexpected behavior changes.
| uses: getditto/.github/.github/workflows/security-update-claude.yml@main | |
| uses: getditto/.github/.github/workflows/security-update-claude.yml@0123456789abcdef0123456789abcdef01234567 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work. The workflow cannot be accessed here. Context here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/getditto/ditto/blob/66dfe00d3efac806ca4b1cf6b1b0a56033883e60/TINES_AUTOMATION.md