Update index.js #50
This file contains 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: Node.js CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm test | |
- name: Build project | |
run: npm run build | |
- name: Mend CLI Scan | |
env: | |
#MEND_EMAIL: ${{secrets.MEND_EMAIL}} | |
#MEND_USER_KEY: ${{secrets.MEND_USER_KEY}} | |
#MEND_URL: https://saas.mend.io | |
MEND_EMAIL: mendscanner@ness.com | |
MEND_USER_KEY: 1578756296eb460f8ea78f775aa1c66980a4c6e981ed406691881efe16df938a | |
MEND_URL: https://saas-il.mend.io/ | |
run: | | |
echo Downloading Mend CLI | |
#echo "Repository Name: ${{ github.repository }}" | |
#echo "Repository Name: ${GITHUB_REPOSITORY##*/}" | |
curl https://downloads.mend.io/cli/linux_amd64/mend -o /usr/local/bin/mend && chmod +x /usr/local/bin/mend | |
echo run Mend dependencies scan | |
mend dep --update --scope "GitHub Repository//${GITHUB_REPOSITORY##*/}" --reachability | |
echo Run Mend code scan | |
# - name: Start server | |
# run: npm start |