This GitHub Action is designed for scanning Skills Network repositories using Contrast SAST. It automates the process and uploads the scan results to the Contrast portal.
-
Create a new branch
git checkout -b releases/v1
-
Replace the contents of
src/
with your action code -
Add tests to
__tests__/
for your source code if nessary -
Format, test, and build the action
npm run all
This step is important! It will run
ncc
to build the final JavaScript action code with all dependencies included. If you do not run this step, your action will not work correctly when it is used in a workflow. This step also includes the--license
option forncc
, which will create a license file for all of the production node modules used in your project. -
Commit your changes
git add . git commit -m "Fix: Update action code"
-
Push them to your repository
git push -u origin <branch_name>
-
Get approval from a fulltimer and merge the PR into the
main
branch
See more info regarding updating the action on the TypeScript action template repo