advanced-security / codeql-sap-js

CodeQL models for SAP JavaScript frameworks CAP, UI5 and XSJS
MIT License
1 stars 0 forks source link

Add a CodeQL extractor for SAP CAP cds files #158

Closed lcartey closed 1 week ago

lcartey commented 1 month ago

This pull requests adds a native CodeQL extractor for the cds service description files from SAP's cap framework.

The cds extractor supports the following scripts:

In addition to the cds extractor, I've also added the following:

Finally, I've updated the Code Scanning workflow to use/test the new CDS extractor.

Some follow up tasks I would look at as separate PRs are:

jeongsoolee09 commented 1 month ago

Another question: Does the end user lose the capability of firing the chain of database init --language through database finalize with a codeql database create --language=cds if database init and database finalize require different values for their --language flags?

I don't think this is a significant downside since the user has to run pre-finalize.sh for the options anyways.