Skip to content

Commit e7de2ef

Browse files
committed
Immutable Actions: update tests
1 parent 719a834 commit e7de2ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

audit_workflow_runs.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ function testSearchForActionsLines() {
8686
2025-03-28T12:00:02Z Some other log line
8787
`;
8888
const expected1 = [
89-
["actions/checkout", "v4", "11bd71901bbe5b1630ceea73d27597364c9af683"],
90-
["actions/setup-node", "v3", "22cd71901bbe5b1630ceea73d27597364c9af684"],
89+
["actions/checkout", "v4", "11bd71901bbe5b1630ceea73d27597364c9af683", null, null],
90+
["actions/setup-node", "v3", "22cd71901bbe5b1630ceea73d27597364c9af684", null, null],
9191
];
9292
assert.deepStrictEqual(
9393
searchForActionsLines(logContent1),
@@ -112,7 +112,7 @@ function testSearchForActionsLines() {
112112
2025-03-28T12:00:02Z Download action repository 'actions/setup-node@v3' (SHA:22cd71901bbe5b1630ceea73d27597364c9af684)
113113
`;
114114
const expected3 = [
115-
["actions/checkout", "v4", "11bd71901bbe5b1630ceea73d27597364c9af683"],
115+
["actions/checkout", "v4", "11bd71901bbe5b1630ceea73d27597364c9af683", null, null],
116116
];
117117
assert.deepStrictEqual(
118118
searchForActionsLines(logContent3),
@@ -133,7 +133,7 @@ function testSearchForActionsLines() {
133133
const logContent5 = `2025-03-28T12:00:00Z Download action repository 'actions/checkout@v4' (SHA:invalid_sha)
134134
2025-03-28T12:00:01Z Malformed log line
135135
`;
136-
const expected5 = [["actions/checkout", "v4", "invalid_sha"]];
136+
const expected5 = [["actions/checkout", "v4", "invalid_sha", null, null]];
137137
assert.deepStrictEqual(
138138
searchForActionsLines(logContent5),
139139
expected5,
@@ -207,7 +207,7 @@ function testSearchForActionsLines() {
207207
const expected6 = [
208208
["actions/checkout", "v4", "11bd71901bbe5b1630ceea73d27597364c9af683", "4.2.2", "ccb2698953eaebd21c7bf6268a94f9c26518a7e38e27e0b83c1fe1ad049819b1"],
209209
["actions/setup-java", "v4", "c5195efecf7bdfc987ee8bae7a71cb8b11521c00", "4.7.1", "23223d64943473efb4336f60463c0429cd4f422cd5fc6c48a5cf0d5907c1aeac"],
210-
["sbt/setup-sbt", "v1", "234370af1319038bf8dc432f8a7e4b83078a1781"],
210+
["sbt/setup-sbt", "v1", "234370af1319038bf8dc432f8a7e4b83078a1781", null, null],
211211
["actions/cache", "v4", "5a3ec84eff668545956fd18022155c47e93e2684", "4.2.3", "c8a3bb963e1f1826d8fcc8d1354f0dd29d8ac1db1d4f6f20247055ae11b81ed9"],
212212
];
213213
assert.deepStrictEqual(

0 commit comments

Comments
 (0)