File tree Expand file tree Collapse file tree 2 files changed +52
-2
lines changed
Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Endor Labs PR Scan
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' master'
7+ - ' releases/v*'
8+ - ' debian/*'
9+ paths :
10+ - ' **/CMakeLists.txt'
11+ - ' **/*.cmake'
12+
13+ jobs :
14+ configure_and_scan :
15+ permissions :
16+ id-token : write # Required to request a json web token (JWT) for keyless authentication with Endor Labs
17+ pull-requests : write # Required for endorctl to write pr comments
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout Repository
21+ uses : actions/checkout@v6
22+ with :
23+ fetch-tags : true
24+ submodules : recursive
25+
26+ - name : Configure CMake and fetch dependency sources
27+ env :
28+ BUILD_TYPE : Release
29+ BUILD : ${{github.workspace}}/build
30+ CXX_STANDARD : 17
31+ working-directory : ${{env.BUILD}}
32+ run : cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_STANDARD=${{env.CXX_STANDARD}} -DENABLE_TESTS=ON
33+
34+ - name : Endor Labs - Pull Request Scan
35+ uses : endorlabs/github-action@519df81de5f68536c84ae05ebb2986d0bb1d19fc # v1.1.8
36+ with :
37+ additional_args : " --languages=c --exclude-path=\" build/CMakeFiles/**\" "
38+ enable_pr_comments : true
39+ github_token : ${{ secrets.GITHUB_TOKEN }} # Required for endorctl to write pr comments
40+ log_level : info
41+ log_verbose : false
42+ namespace : mongodb.${{github.repository_owner}}
43+ pr : true
44+ scan_dependencies : true
45+ scan_summary_output_type : " table"
46+ tags : github_action
47+ env :
48+ ENDOR_SCAN_EMBEDDINGS : true
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - ' master'
7- - ' releases/v** '
7+ - ' releases/v*'
88 - ' debian/*'
99 paths :
1010 - ' **/CMakeLists.txt'
2323 - name : Checkout Repository
2424 uses : actions/checkout@v6
2525 with :
26+ fetch-tags : true
2627 submodules : recursive
2728
2829 - name : Configure CMake and fetch dependency sources
3334 working-directory : ${{env.BUILD}}
3435 run : cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_STANDARD=${{env.CXX_STANDARD}} -DENABLE_TESTS=ON
3536
36- - name : Install endorctl and Scan with Endor Labs
37+ - name : Endor Labs - Monitoring Scan
3738 uses : endorlabs/github-action@519df81de5f68536c84ae05ebb2986d0bb1d19fc # v1.1.8
3839 with :
3940 additional_args : " --languages=c --exclude-path=\" build/CMakeFiles/**\" "
4243 namespace : mongodb.${{github.repository_owner}}
4344 pr : false
4445 scan_dependencies : true
46+ scan_summary_output_type : " table"
4547 tags : github_action
4648 env :
4749 ENDOR_SCAN_EMBEDDINGS : true
You can’t perform that action at this time.
0 commit comments