Skip to content

Commit 09f3b4b

Browse files
committed
#125: addressing Aquasec findings
1 parent 97a4c3b commit 09f3b4b

File tree

6 files changed

+38
-14
lines changed

6 files changed

+38
-14
lines changed

.github/workflows/assign_issue_to_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Add issue to project
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/add-to-project@v0.5.0
12+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e
1313
with:
1414
project-url: https://github.com/orgs/AbsaOSS/projects/7
1515
github-token: ${{ secrets.PAT_REPO_PROJECT_DISCUSS }}

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
31+
with:
32+
persist-credentials: false
33+
3134
- name: Setup Scala
32-
uses: olafurpg/setup-scala@v10
35+
uses: olafurpg/setup-scala@32ffa16635ff8f19cc21ea253a987f0fdf29844c
3336
with:
3437
java-version: "[email protected]"
38+
3539
- name: Build and run tests
3640
run: sbt test doc

.github/workflows/dependent_items.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
check:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: z0al/dependent-issues@v1.5.2
30+
- uses: z0al/dependent-issues@950226e7ca8fc43dc209a7febf67c655af3bdb43
3131
env:
3232
# (Required) The token to use to make API calls to GitHub.
3333
GITHUB_TOKEN: ${{ secrets.PAT_REPO_PROJECT_DISCUSS }}

.github/workflows/jacoco_check.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,50 +26,60 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
30+
with:
31+
persist-credentials: false
32+
3033
- name: Setup Scala
31-
uses: olafurpg/setup-scala@v10
34+
uses: olafurpg/setup-scala@32ffa16635ff8f19cc21ea253a987f0fdf29844c
3235
with:
3336
java-version: "[email protected]"
37+
3438
- name: Build and run tests
3539
run: sbt jacoco
40+
3641
- name: Add coverage to PR for scala 2.11 and spark 2.4
3742
id: jacoco211
38-
uses: madrapps/jacoco-report@v1.7.2
43+
uses: madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848
3944
with:
4045
paths: ${{ github.workspace }}/spark-commons/spark2.4-jvm-2.11/jacoco/report/jacoco.xml
4146
token: ${{ secrets.GITHUB_TOKEN }}
4247
min-coverage-overall: 0.0
4348
min-coverage-changed-files: 80.0
4449
title: JaCoCo code coverage report - scala:2.11 - spark:2.4
4550
update-comment: true
51+
4652
- name: Get the Coverage info
4753
run: |
4854
echo "Total coverage ${{ steps.jacoco211.outputs.coverage-overall }}"
4955
echo "Changed Files coverage ${{ steps.jacoco211.outputs.coverage-changed-files }}"
56+
5057
- name: Add coverage to PR for scala 2.12 and spark 3.3
5158
id: jacoco212
52-
uses: madrapps/jacoco-report@v1.7.2
59+
uses: madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848
5360
with:
5461
paths: ${{ github.workspace }}/spark-commons/spark3-jvm-2.12/jacoco/report/jacoco.xml
5562
token: ${{ secrets.GITHUB_TOKEN }}
5663
min-coverage-overall: 0.0
5764
min-coverage-changed-files: 80.0
5865
title: JaCoCo code coverage report - scala:2.12 - spark:3.3
5966
update-comment: true
67+
6068
- name: Get the Coverage info
6169
run: |
6270
echo "Total coverage ${{ steps.jacoco212.outputs.coverage-overall }}"
6371
echo "Changed Files coverage ${{ steps.jacoco212.outputs.coverage-changed-files }}"
72+
6473
- name: Fail PR if changed files coverage is less than 80%
6574
if: ${{ steps.jacoco211.outputs.coverage-changed-files < 80.0 }}
66-
uses: actions/github-script@v6
75+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
6776
with:
6877
script: |
6978
core.setFailed('Changed files coverage is less than 80%!')
79+
7080
- name: Fail PR if changed files coverage is less than 80%
7181
if: ${{ steps.jacoco212.outputs.coverage-changed-files < 80.0 }}
72-
uses: actions/github-script@v6
82+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
7383
with:
7484
script: |
7585
core.setFailed('Changed files coverage is less than 80%!')

.github/workflows/license_check.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
31+
with:
32+
persist-credentials: false
33+
3134
- name: Setup Scala
32-
uses: olafurpg/setup-scala@v10
35+
uses: olafurpg/setup-scala@32ffa16635ff8f19cc21ea253a987f0fdf29844c
3336
with:
3437
java-version: "[email protected]"
38+
3539
- run: sbt headerCheck

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
publish:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2.3.4
25+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
2626
with:
27+
persist-credentials: false
2728
fetch-depth: 0
28-
- uses: olafurpg/setup-scala@v13
29+
30+
- name: Setup Scala
31+
uses: olafurpg/setup-scala@32ffa16635ff8f19cc21ea253a987f0fdf29844c
32+
with:
33+
java-version: "[email protected]"
34+
2935
- run: sbt ci-release
3036
env:
3137
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

0 commit comments

Comments
 (0)