Skip to content

Commit 20a9821

Browse files
authored
Merge pull request #729 from Iterable/MOB-8396-isrr-515
[MOB-8396] address git action commit hash vulnerability and update to latest
2 parents e95295f + 1cc60c4 commit 20a9821

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1414

1515
- name: Validate Gradle Wrapper
16-
uses: gradle/wrapper-validation-action@v1
16+
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
1717

1818
- name: Configure JDK
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
2020
with:
2121
java-version: 11
2222

@@ -33,23 +33,23 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3737

3838
- name: Validate Gradle Wrapper
39-
uses: gradle/wrapper-validation-action@v1
39+
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
4040

4141
- name: Configure JDK
42-
uses: actions/setup-java@v1
42+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
4343
with:
44-
java-version: 11
44+
java-version: 11
4545

4646
- run: touch local.properties
4747

4848
- name: Test
4949
run: ./gradlew :iterableapi:jacocoTestDebugUnitTestReport :app:jacocoDebugTestReport
5050

5151
- name: Upload coverage data
52-
uses: actions/upload-artifact@v2
52+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
5353
with:
5454
name: unit-tests
5555
path: |
@@ -58,29 +58,29 @@ jobs:
5858
5959
instrumentation-tests:
6060
name: Instrumentation tests
61-
runs-on: macos-latest
61+
runs-on: macos-12
6262
steps:
6363
- name: Checkout
64-
uses: actions/checkout@v2
64+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6565

6666
- name: Validate Gradle Wrapper
67-
uses: gradle/wrapper-validation-action@v1
67+
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
6868

6969
- name: Configure JDK
70-
uses: actions/setup-java@v1
70+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
7171
with:
72-
java-version: 11
72+
java-version: 11
7373

7474
- run: touch local.properties
7575

7676
- name: Test
77-
uses: reactivecircus/android-emulator-runner@v2
77+
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
7878
with:
7979
api-level: 28
8080
script: ./gradlew :iterableapi:connectedCheck :app:jacocoDebugAndroidTestReport
8181

8282
- name: Upload coverage data
83-
uses: actions/upload-artifact@v2
83+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
8484
with:
8585
name: instrumentation-tests
8686
path: |
@@ -95,10 +95,12 @@ jobs:
9595
JACOCO_SOURCE_PATH: "iterableapi/src/main/java iterableapi-ui/src/main/java"
9696
steps:
9797
- name: Checkout
98-
uses: actions/checkout@v2
98+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
99+
with:
100+
fetch-depth: 0
99101

100102
- name: Configure JDK
101-
uses: actions/setup-java@v1
103+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
102104
with:
103105
java-version: 11
104106

@@ -107,12 +109,12 @@ jobs:
107109
- run: ./cc-test-reporter before-build
108110

109111
- name: Download unit tests coverage
110-
uses: actions/download-artifact@v2
112+
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
111113
with:
112114
name: unit-tests
113115

114116
- name: Download instrumentation tests coverage
115-
uses: actions/download-artifact@v2
117+
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
116118
with:
117119
name: instrumentation-tests
118120

@@ -123,4 +125,4 @@ jobs:
123125
- run: ./cc-test-reporter format-coverage app/build/reports/jacoco/jacocoDebugAndroidTestReport/jacocoDebugAndroidTestReport.xml --input-type jacoco -d
124126
- run: ./cc-test-reporter upload-coverage
125127
env:
126-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
128+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

.github/workflows/jira.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
name: Create Jira Issue
1111
steps:
1212
- name: Login
13-
uses: atlassian/gajira-login@v3
13+
uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3
1414
env:
1515
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
1616
JIRA_USER_EMAIL: ${{ secrets.JIRA_ILYA_USER_EMAIL }}
1717
JIRA_API_TOKEN: ${{ secrets.JIRA_ILYA_API_TOKEN }}
1818

1919
- name: Create
2020
id: create
21-
uses: atlassian/gajira-create@v3
21+
uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3
2222
with:
2323
project: MOB
2424
issuetype: Bug

0 commit comments

Comments
 (0)