Skip to content

Merge pull request #17 from leanix/feature/CID-2097/fix-snyk-vulnerab… #31

Merge pull request #17 from leanix/feature/CID-2097/fix-snyk-vulnerab…

Merge pull request #17 from leanix/feature/CID-2097/fix-snyk-vulnerab… #31

name: Generate and register service
on:
push:
branches:
- main
workflow_dispatch:
jobs:
post-deploy:
name: Post Deployment
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Get credentials
uses: leanix/secrets-action@master
with:
secret-store-credentials: ${{ secrets.INJECTED_SECRET_STORE_CREDENTIALS }}
- name: Setup Node ${{ env.NODE_VERSION }} Environment
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Generate SBOM
run: |
npm install
npm install --global @cyclonedx/cyclonedx-npm
cyclonedx-npm --output-file "bom.json"
- name: VSM discovery
uses: leanix/vsm-discovery-github-action@main
with:
api-token: ${{ env.VSM_LEANIX_API_TOKEN }}