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

Report Hosting for Open Source Projects #306

Open
abhisek opened this issue Jan 15, 2025 · 1 comment
Open

Report Hosting for Open Source Projects #306

abhisek opened this issue Jan 15, 2025 · 1 comment

Comments

@abhisek
Copy link
Member

abhisek commented Jan 15, 2025

Background

We have vet-action that integrates vet with GitHub Action to provide easy CI integration with safe defaults and supports for custom policy, exceptions etc. vet-action is specifically designed to handle CI complexities such as identifying packages changed in a PR and vetting only those with the goal to prevent new risks from being introduced.

Problem

vet-action uses GitHub Actions workflow for scanning with vet. It is restricted within GitHub Action security model which restricts access to GitHub API using default GITHUB_TOKEN available in the CI environment when a PR is raised from a forked branch. This prevents vet-action from adding a PR issue (comment). When a failure occurs due to policy violation, users have to manually view the action log to identify the cause of failure. This leads to poor user experience especially for open source maintainers who uses vet-action.

While we can use pull_request_target to workaround this permission limitation, it introduces additional security risk for the project that we want to avoid.

Solution

We should provide a hosted report with policy violations for open source projects. For example, when vet-action detects a policy violation, it will create a snapshot of violation & package metadata that caused the violation and host it in a URL. This is similar to what we do with our Malware Analysis service example Malware Analysis Report

This will enable open source project maintainers to easily visualize the cause of CI failure even with vet-action without introducing security risks of using pull_request_target even trigger.

@abhisek
Copy link
Member Author

abhisek commented Feb 26, 2025

We have a stop gap solution for generating JSON report using vet and then using https://vetpkg.dev/vr for visualization

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

No branches or pull requests

1 participant