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

Create action to virus scan all add-ons #4302

Merged
merged 12 commits into from
Sep 29, 2024
Merged

Create action to virus scan all add-ons #4302

merged 12 commits into from
Sep 29, 2024

Conversation

seanbudd
Copy link
Member

@seanbudd seanbudd commented Sep 18, 2024

VirusTotal scanning has been enabled for newly submitted add-ons.
This PR adds a GitHub action to scan all already submitted add-ons with VirusTotal.

When the scan runs, a PR is opened to add scan URLs to add-on metadata, and update the list of approved add-ons which have Virus scanning flagged.

Example PR: nvaccess#72
Example GitHub run: https://github.com/nvaccess/addon-datastore-staging/actions/runs/10986159260/job/30499090448

Latest GitHub run: https://github.com/nvaccess/addon-datastore-staging/actions/runs/11024324626/job/30617277974
Latest results PR: https://github.com/nvaccess/addon-datastore-staging/pull/73/files

@seanbudd seanbudd marked this pull request as ready for review September 19, 2024 23:53
.github/workflows/virusTotalSubmit.js Outdated Show resolved Hide resolved
.github/workflows/virusTotalSubmit.js Outdated Show resolved Hide resolved
.github/workflows/virusTotalSubmit.js Show resolved Hide resolved
.github/workflows/virusTotalAnalysis.js Outdated Show resolved Hide resolved
.github/workflows/virusTotalAnalysis.js Outdated Show resolved Hide resolved
.github/workflows/virusScanAllAddons.yml Outdated Show resolved Hide resolved
.github/workflows/virusScanAllAddons.yml Outdated Show resolved Hide resolved
@SaschaCowley
Copy link
Member

Is it worth setting up an alias for jq -e --tab since that seems to be what we use most of the time?

@seanbudd
Copy link
Member Author

Is it worth setting up an alias for jq -e --tab since that seems to be what we use most of the time?

I think it might be harder than its worth at this point

fs.writeFileSync('reviewedAddons.json', stringified);
core.setFailed('VirusTotal analysis failed');
fs.writeFileSync("reviewedAddons.json", stringified);
core.setFailed("VirusTotal analysis failed");
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be here? Seems like analysis hasn't failed, but the add-on has been flagged?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is so individual submissions will fail if they are flagged. We probably should have different behaviour for group runs vs individual runs

@seanbudd seanbudd merged commit dedc7cd into master Sep 29, 2024
@seanbudd seanbudd deleted the virusScanAddons branch September 29, 2024 23:46
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