SasanLabs / VulnerableApp-facade

VulnerableApp-facade is probably most modern lightweight distributed farm of Vulnerable Applications built for handling wide range of vulnerabilities across tech stacks.
Apache License 2.0
45 stars 48 forks source link

Add a github action to validate the PR. #39

Open preetkaran20 opened 3 years ago

preetkaran20 commented 3 years ago

There is currently no Github action that validates the PR. Add the action to validate both javascript/typescript changes (npm run build) and also Lua changes in the PR.

preetkaran20 commented 3 years ago

Added the PR validation for the javascript/typescript module. Left part is LUA validation.

lmcdo commented 2 years ago

I can help could you provide further requirement details? thanks

preetkaran20 commented 2 years ago

Hi @lmcdo ,

So currently, this project has TypeScript/Javascript as well as Lua file (for openresty) and we are looking for a github action to compile and validate the PR before merging it into master.

Currently the github actions is there at https://github.com/SasanLabs/VulnerableApp-facade/blob/main/.github/workflows/Compile.yml and it is working fine for Typescript/Javascript but we want to include the LUA validator as well. Also I am not sure, if we are running unit tests for Typescript/Javascript as part of the PR build so wanted to validate that as well.

LUA script is present at: https://github.com/SasanLabs/VulnerableApp-facade/tree/main/lua-modules. it is invoked from https://github.com/SasanLabs/VulnerableApp-facade/blob/main/nginx.conf (nginx.conf)

Please let me know, if you need more information.

thanks, Karan