File tree Expand file tree Collapse file tree 2 files changed +16
-20
lines changed
Expand file tree Collapse file tree 2 files changed +16
-20
lines changed Original file line number Diff line number Diff line change 33name : CI Polaris Scanning
44on :
55 workflow_call :
6- secrets :
7- token :
8- description : ' Secret token from caller workflow to access private packages'
9- required : true
10-
116 inputs :
127 scan_branch :
138 description : Incoming branch to release or main
149 required : true
1510 type : string
16-
11+ permissions :
12+ contents : write # Required to push changes or create fix branches
13+ pull-requests : write # Required to add comments or create fix pull requests
1714jobs :
18- build :
15+ polaris_scan :
1916 runs-on : [ ubuntu-latest ]
2017 continue-on-error : true
2118 steps :
2219 - name : Checkout Source
23- uses : actions/checkout@v4
20+ uses : actions/checkout@v6
2421 - name : Polaris Scan
2522 uses : blackduck-inc/black-duck-security-scan@v2
2623 with :
2926 polaris_access_token : ${{ secrets.POLARIS_TOKEN }}
3027 polaris_assessment_types : " SCA,SAST"
3128
32- polaris_application_name : integrations-${{ github.event.repository.name }}
33- github_token : ${{ secrets.token }}
29+ polaris_application_name : " Integrations"
30+ polaris_project_name : ${{ github.event.repository.name }}
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ polaris_prComment_enabled : true
33+ polaris_reports_sarif_create : true # Create SARIF report and upload it as artifact
3434
35- polaris_test_sast_location : " remote"
36- polaris_test_sca_location : " remote"
Original file line number Diff line number Diff line change @@ -168,14 +168,12 @@ jobs:
168168 secrets :
169169 token : ${{ secrets.token }}
170170
171- # call-polaris-scan-workflow:
172- # if: github.event_name == 'pull_request' && (startsWith(github.base_ref, 'release-') || github.base_ref == 'main')
173- # uses: Keyfactor/actions/.github/workflows/kf-polaris-scan.yml@v4
174- # with:
175- # scan_branch: ${{ github.event.pull_request.head.ref }}
176- # secrets:
177- # token: ${{ secrets.scan_token }}
178-
171+ call-polaris-scan-workflow :
172+ if : github.event_name == 'pull_request' && (startsWith(github.base_ref, 'release-') || github.base_ref == 'main')
173+ uses : Keyfactor/actions/.github/workflows/kf-polaris-scan.yml@v4
174+ with :
175+ scan_branch : ${{ github.event.pull_request.head.ref }}
176+
179177 call-post-release-workflow :
180178 needs : [ call-assign-from-json-workflow, call-create-github-release-workflow ]
181179 if : needs.call-create-github-release-workflow.outputs.IS_FULL_RELEASE == 'True'
You can’t perform that action at this time.
0 commit comments