File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed
Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,27 @@ jobs:
1717
1818 steps :
1919 - uses : actions/checkout@v3
20+
2021 - name : Set up Python ${{ matrix.python-version }}
2122 uses : actions/setup-python@v3
2223 with :
2324 python-version : ${{ matrix.python-version }}
25+
2426 - name : Install Dependencies
2527 run : |
2628 python -m pip install --upgrade pip
2729 pip install pylint
2830 pip install -r requirements.txt
2931 pip install build
32+
3033 - name : Test API
3134 run : |
3235 pylint prismacloud/api
36+
3337 - name : Test Scripts
3438 run : |
3539 python -m build
36- pip install dist/prismacloud_api-*
40+ # pip install dist/prismacloud_api-*
41+ pip install dist/prismacloud_api-*.whl # Only install the wheel file
3742 pip install -r scripts/requirements.txt
3843 pylint scripts/*.py
Original file line number Diff line number Diff line change 77from ._errors import *
88from ._fixes import *
99from ._repositories import *
10+ from ._rules import *
1011from ._scans import *
1112from ._suppressions import *
1213from ._packages import *
Original file line number Diff line number Diff line change 1+ """ Prisma Cloud Code Security enforcement-rules Endpoints Class """
2+
3+ # enforcement-rules
4+
5+ class SuppressionsPrismaCloudAPIPCCSMixin :
6+ """ Prisma Cloud Code Security API Suppressions Endpoints Class """
7+
8+ def enforcement_rules_read (self ):
9+ return self .execute_code_security ('GET' , 'code/api/v1/enforcement-rules' )
10+
11+ def enforcement_rules_update (self , rules ):
12+ return self .execute_code_security ('PUT' , 'code/api/v1/enforcement-rules' , body_params = rules )
13+
14+ def enforcement_rules_exception_create (self , policy_id , rule ):
15+ return self .execute_code_security ('POST' , 'code/api/v1/enforcement-rules' , body_params = rule )
16+
17+ def enforcement_rules_exception_delete (self , rule_id ):
18+ return self .execute_code_security ('DELETE' , 'code/api/v1/enforcement-rules/%s' % (rule_id ))
Original file line number Diff line number Diff line change 1- version = "5.2.22 "
1+ version = "5.2.23 "
You can’t perform that action at this time.
0 commit comments