Skip to content
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

feat: add dependency review action #178

Closed
saidsef opened this issue Nov 20, 2024 · 2 comments
Closed

feat: add dependency review action #178

saidsef opened this issue Nov 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request security Security

Comments

@saidsef
Copy link
Owner

saidsef commented Nov 20, 2024

Problem Statement:
Currently, our workflow lacks automated security scanning of dependency changes in pull requests. This leaves us vulnerable to potential supply chain attacks and the introduction of known vulnerabilities through dependencies.

Proposed Solution:
Implement GitHub's Dependency Review Action to automatically scan dependency changes in pull requests. This will:

  • Flag known vulnerabilities in dependencies
  • Alert on malicious packages
  • Identify dependency version changes
  • Block merges if critical security issues are found

Action Items:

  1. Add dependency review workflow:
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
  1. Configure policy settings:
  • Set severity levels for blocking
  • Define allowed/denied licences
  • Configure vulnerability alerts
  1. Update documentation:
  • Add details to security policy
  • Update contributor guidelines
  • Document remediation process
  1. Test implementation:
  • Create test PR with known vulnerable dependency
  • Verify blocking behaviour
  • Validate alert formatting

Dependencies:

  • GitHub Advanced Security licence
  • Repository access permissions
  • Branch protection rules enabled
@saidsef saidsef added enhancement New feature or request security Security labels Nov 20, 2024
@saidsef saidsef self-assigned this Nov 20, 2024
Copy link

👋 Hi and Thanks for Reporting!

@saidsef saidsef mentioned this issue Nov 21, 2024
8 tasks
@saidsef
Copy link
Owner Author

saidsef commented Nov 23, 2024

This was resolved by #180

@saidsef saidsef closed this as completed Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security Security
Projects
None yet
Development

No branches or pull requests

1 participant