From e0103eab17f3b7e64bff172a1e55ff4ba9fafc8a Mon Sep 17 00:00:00 2001 From: David Leal Date: Thu, 21 Sep 2023 04:28:42 +0000 Subject: [PATCH] Use `actions/checkout@v4` --- lib/init-action-post-helper.test.js | 14 +++++++------- src/init-action-post-helper.test.ts | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/init-action-post-helper.test.js b/lib/init-action-post-helper.test.js index ea00faea3..39dcd021c 100644 --- a/lib/init-action-post-helper.test.js +++ b/lib/init-action-post-helper.test.js @@ -88,7 +88,7 @@ const workflow = __importStar(require("./workflow")); const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -111,7 +111,7 @@ const workflow = __importStar(require("./workflow")); const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -137,7 +137,7 @@ const workflow = __importStar(require("./workflow")); const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -190,7 +190,7 @@ for (const { uploadInput, shouldUpload } of UPLOAD_INPUT_TEST_CASES) { const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -221,7 +221,7 @@ for (const { uploadInput, shouldUpload } of UPLOAD_INPUT_TEST_CASES) { const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -247,7 +247,7 @@ for (const { uploadInput, shouldUpload } of UPLOAD_INPUT_TEST_CASES) { const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -274,7 +274,7 @@ for (const { uploadInput, shouldUpload } of UPLOAD_INPUT_TEST_CASES) { const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, ]); const result = await testFailedSarifUpload(t, actionsWorkflow, { diff --git a/src/init-action-post-helper.test.ts b/src/init-action-post-helper.test.ts index 3818269d2..9bf2430c0 100644 --- a/src/init-action-post-helper.test.ts +++ b/src/init-action-post-helper.test.ts @@ -87,7 +87,7 @@ test("uploads failed SARIF run with `diagnostics export` if feature flag is off" const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -111,7 +111,7 @@ test("uploads failed SARIF run with `diagnostics export` if the database doesn't const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -138,7 +138,7 @@ test("uploads failed SARIF run with database export-diagnostics if the database const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -195,7 +195,7 @@ for (const { uploadInput, shouldUpload } of UPLOAD_INPUT_TEST_CASES) { const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -230,7 +230,7 @@ test("uploading failed SARIF run succeeds when workflow uses an input with a mat const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -257,7 +257,7 @@ test("uploading failed SARIF run fails when workflow uses a complex upload input const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, { name: "Initialize CodeQL", @@ -288,7 +288,7 @@ test("uploading failed SARIF run fails when workflow does not reference github/c const actionsWorkflow = createTestWorkflow([ { name: "Checkout repository", - uses: "actions/checkout@v3", + uses: "actions/checkout@v4", }, ]); const result = await testFailedSarifUpload(t, actionsWorkflow, {