Mend Scan - Carbon Monorepo #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mend Scan - Carbon Monorepo | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs at Midnight UTC | |
| workflow_dispatch: # Allows you to run this manually from the Actions tab | |
| jobs: | |
| mend-scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Setup Java | |
| uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' # Required to run the Mend Unified Agent .jar | |
| - name: Run Mend Scan | |
| env: | |
| WS_APIKEY: ${{ secrets.WS_APIKEY }} | |
| WS_USERKEY: ${{ secrets.WS_USERKEY }} | |
| WS_WSS_URL: ${{ secrets.WS_WSS_URL }} | |
| # Project Configuration | |
| WS_PRODUCTNAME: 'PSIRT_PRD0013444' | |
| WS_PROJECTNAME: 'GH_carbon' | |
| run: | | |
| # Download the latest Mend Unified Agent | |
| curl -L https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar -o wss-unified-agent.jar | |
| # Execute the scan | |
| java -jar wss-unified-agent.jar |