I have added a GitHub workflow to our Jenkins open-source code-base and included the Veracode Scan by adding a stage. This worked successfully for pushes and pull requests.
Please find these changes in the below PR.
PR: https://github.com/jenkinsci/veracode-scan-plugin/pull/12