https://github.com/ethanthephoenix38/dependabot-secure-flow
The Silent Guardian: A Zero-Touch workflow that validates Dependabot updates via build tests, auto-closes failing PRs (Self-Healing), and batches secure updates silently. Stop notification fatigue
https://github.com/ethanthephoenix38/dependabot-secure-flow
automation cybersecurity dependabot flow github-actions guardian phoenixproject repository security vibecoding
Last synced: 25 days ago
JSON representation
The Silent Guardian: A Zero-Touch workflow that validates Dependabot updates via build tests, auto-closes failing PRs (Self-Healing), and batches secure updates silently. Stop notification fatigue
- Host: GitHub
- URL: https://github.com/ethanthephoenix38/dependabot-secure-flow
- Owner: EthanThePhoenix38
- License: mit
- Created: 2026-01-28T20:38:58.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-03-02T06:24:42.000Z (28 days ago)
- Last Synced: 2026-03-02T10:59:16.551Z (28 days ago)
- Topics: automation, cybersecurity, dependabot, flow, github-actions, guardian, phoenixproject, repository, security, vibecoding
- Language: HTML
- Homepage: https://ethanthephoenix38.github.io/dependabot-secure-flow/
- Size: 3.11 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/EthanThePhoenix38/dependabot-secure-flow/generate)
[](https://github.com/marketplace/actions/dependabotsecureflow)
[](https://github.com/EthanThePhoenix38/dependabot-secure-flow/actions)
[](https://github.com/EthanThePhoenix38/dependabot-secure-flow/network/dependencies)
[](https://github.com/EthanThePhoenix38/dependabot-secure-flow) [](https://github.com/EthanThePhoenix38/dependabot-secure-flow/actions) [](https://choosealicense.com/licenses/mit/) [](https://github.com/EthanThePhoenix38/dependabot-secure-flow/releases) [](https://github.com/EthanThePhoenix38/dependabot-secure-flow/security)
[](https://github.com/EthanThePhoenix38/dependabot-secure-flow)
# [DependabotSecureFlow](https://github.com/EthanThePhoenix38/dependabot-secure-flow)
> Automated dependency management with security-first batch processing
[](https://github.com/marketplace/actions/dependabotsecureflow)
[](https://opensource.org/licenses/MIT)
## ๐ฏ Overview
**Dependabot Secure Flow** is a GitHub Action that automatically manages dependency updates through a secure, batched workflow. Instead of merging Dependabot PRs directly to `main`, this action:
1. โ
Auto-merges Dependabot PRs into a `securite` branch
2. ๐งช Validates builds and tests
3. ๐ฆ Batches multiple updates together
4. ๐ Auto-generates changelog entries
5. ๐ Creates a single PR to `main` for review
## ๐ Features
- **Security-First**: All updates are validated before reaching `main`
- **Batch Processing**: Multiple dependency updates are grouped together
- **Auto-Correction**: Failed builds automatically close problematic PRs
- **Changelog Automation**: Automatic timestamp and changelog updates
- **Zero Configuration**: Works out of the box with sensible defaults
## ๐ฆ Installation
### 1. Add the workflow to your repository
Create `.github/workflows/dependabot-secure-flow.yml`:
```yaml
name: Dependabot Secure Flow
on:
pull_request:
types: [opened, synchronize]
paths:
- 'package.json'
- 'package-lock.json'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
jobs:
auto-merge-to-securite:
uses: EthanThePhoenix38/dependabot-secure-flow/.github/workflows/dependabot-secure-flow.yml@main
secrets: inherit
```
### 2. Configure Dependabot
Create `.github/dependabot.yml`:
```yaml
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
```
### 3. Add required scripts to `package.json`
```json
{
"scripts": {
"build": "echo 'Build step' && exit 0",
"test": "echo 'Test step' && exit 0"
}
}
```
## ๐ง How It Works
```mermaid
graph LR
A[Dependabot PR] --> B{Build Valid?}
B -->|Yes| C[Merge to securite]
B -->|No| D[Close PR]
C --> E[Batch with others]
E --> F[Create PR to main]
F --> G[Manual Review]
G --> H[Merge to main]
```
1. **Dependabot creates a PR** with dependency updates
2. **Workflow validates** the build (`npm install && npm run build`)
3. **Auto-merge to `securite`** if validation passes
4. **Close PR** if validation fails (with label `skipped-vulnerability`)
5. **Batch updates** accumulate in the `securite` branch
6. **Create PR to `main`** for final review
7. **Update documentation** (README timestamp, CHANGELOG)
## ๐ Requirements
- Node.js project with `package.json`
- `npm run build` script (can be a no-op: `echo 'No build'`)
- GitHub repository with Dependabot enabled
## โ๏ธ Configuration
### Optional: Customize the workflow
You can override default behavior by modifying the workflow file:
```yaml
jobs:
check-interdependencies:
steps:
- name: Auto-Correction & Validation
run: |
npm install --prefer-offline --no-audit
npm run build
npm test # Add your test command
```
### Branch Strategy
- `main`: Production-ready code
- `securite`: Staging area for dependency updates
- `dependabot/*`: Temporary branches (auto-deleted after merge)
## ๐ก๏ธ Security
This action follows security best practices:
- โ
No external dependencies (uses only GitHub Actions)
- โ
Validates all updates before merging
- โ
Auto-closes PRs that fail validation
- โ
Requires manual review before reaching `main`
## ๐ Example Output
When the workflow runs successfully:
```
โ
Merged into securite branch for batch processing.
๐ Updated CHANGELOG.md with timestamp
๐ Created PR #42: chore: dependency updates batch
```
## Configuration Options
| Input | Description | Required | Default |
| :--- | :--- | :--- | :--- |
| `github-token` | Token to manage PRs (GITHUB_TOKEN) | Yes | N/A |
| `node-version` | Node versions to use | No | 20 |
| `test-command` | Command to run for validation | No | `npm install && npm run build` |
---
## ๐ค Contributing
Contributions are welcome! This action is maintained in the [AI-Pulse](https://github.com/ThePhoenixAgency/AI-Pulse) repository and automatically synced here.
## ๐ License
MIT License - see [LICENSE](LICENSE) for details
## ๐ Links
- [GitHub Marketplace](https://github.com/marketplace/actions/dependabotsecureflow)
- [Source Repository](https://github.com/EthanThePhoenix38/dependabot-secure-flow)
- [Issue Tracker](https://github.com/EthanThePhoenix38/dependabot-secure-flow/issues)
---
## Support This Project
If this action helps secure your projects, support the development:
[](https://github.com/sponsors/EthanThePhoenix38)
[](https://patreon.com/EthanThePhoenix)
[](https://www.paypal.com/paypalme/VanessaBernier)
[](https://ko-fi.com/EthanThePhoenix)
[](https://www.patreon.com/EthanThePhoenix)
**Your support helps fund the server and AI development!**
In exchange, I will add a link to your GitHub profile in the Contributors section.
You can also :
- โญ **Star this repository**
- ๐ **Report issues** to help improve it
- ๐ **Fork it** to customize for your needs
- ๐ **Report issues** to help improve it
---
## Professional Page
[https://thephoenixagency.github.io](https://thephoenixagency.github.io)
---
**Made with โค๏ธ by [ThePhoenixAgency](https://github.com/ThePhoenixAgency)**