Skip to content

revert to full scan #46

revert to full scan

revert to full scan #46

Workflow file for this run

name: Generate SBOM
on:
workflow_dispatch:
push:
# branches:
# - 'master'
# - 'releases/**'
# - 'CXX**'
jobs:
configure-and-scan:
permissions:
id-token: write # Required to request a json web token (JWT) for keyless authentication with Endor Labs
#packages: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
submodules: recursive
# - name: Install dev libs
# run: sudo apt install -y libsasl2-dev libsnappy-dev libssl-dev libmongocrypt-dev
- name: Configure CMake and fetch dependency source
env:
BUILD_TYPE: Release
BUILD: ${{github.workspace}}/build
CXX_STANDARD: 17
working-directory: ${{env.BUILD}}
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_STANDARD=${{env.CXX_STANDARD}} -DENABLE_TESTS=ON
# - name: Create and populate .endorctl/scanprofile.yaml file
# run: |
# mkdir .endorctl
# cat <<EOF > .endorctl/scanprofile.yaml
# kind: AutomatedScanParameters
# spec:
# automated_scan_parameters:
# additional_environment_variables:
# - ENDOR_SCAN_EMBEDDINGS=true
# included_paths:
# - build/_deps/**
# #excluded_paths:
# # - benchmark/**
# # - src/**
# languages:
# - c
# scan_dependencies: true
# tags: github_action
# EOF
# git add .endorctl/scanprofile.yaml
# echo "cat .endorctl/scanprofile.yaml"
# cat .endorctl/scanprofile.yaml
# - name: Rename build folder # Endor Labs will automatically try to exclude "build"
# run: |
# mv build third_party
# git add third_party
- name: Install endorctl and Scan with Endor Labs
uses: endorlabs/github-action@519df81de5f68536c84ae05ebb2986d0bb1d19fc # Release v1.1.8
with:
additional_args: "--languages=c"
log_level: info
log_verbose: false
namespace: mongodb.${{github.repository_owner}}
pr: false
scan_dependencies: true
tags: github_action
env:
ENDOR_SCAN_EMBEDDINGS: true
# - name: Setup Endor Labs Endorctl
# uses: endorlabs/github-action/setup@519df81de5f68536c84ae05ebb2986d0bb1d19fc # Release v1.1.8
# with:
# namespace: mongodb.${{github.repository_owner}}
# enable_github_action_token: true
# - name: Run Endorctl
# env:
# ENDOR_SCAN_USE_SCAN_PROFILE: true
# run: endorctl scan
# - uses: actions/setup-python@v6
# with:
# python-version: '3.10'
# - run: python my_script.py
# ${{ github.sha }}
# - name: Run Endorctl
# env:
# ENDOR_GITHUB_ACTION_TOKEN_ENABLE: true
# ENDOR_SCAN_DEPENDENCIES: true
# ENDOR_SCAN_EMBEDDINGS: true
# ENDOR_SCAN_INCLUDE_PATH:
# ENDOR_SCAN_LANGUAGES: c
# ENDOR_SCAN_SUMMARY_OUTPUT_TYPE: json
# ENDOR_SCAN_TAGS: github_action
# run: |
# endorctl scan