From 6d10d7ca9cd03b6541ed20e2e6cee1030e1dd349 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 14:16:25 -0500 Subject: [PATCH 1/3] Update actions/setup-node@v3 to v4 Signed-off-by: Joyce Quach --- .github/workflows/cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 69c167e0b..9a0d0f066 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -10,7 +10,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 22 cache: npm From 58e1dae9cccd49e5d0e5d275b49bc0a0e0fe34f7 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 14:54:13 -0500 Subject: [PATCH 2/3] Update Markdown files to use actions v4 Signed-off-by: Joyce Quach --- src/courses/advanced/09.md | 4 ++-- src/courses/advanced/10.md | 20 +++++++++---------- src/courses/advanced/11.md | 4 ++-- ...peline for Validating an InSpec Profile.md | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/courses/advanced/09.md b/src/courses/advanced/09.md index 6ba8b7372..8064b6297 100644 --- a/src/courses/advanced/09.md +++ b/src/courses/advanced/09.md @@ -81,7 +81,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -137,7 +137,7 @@ jobs: # save our results to the pipeline artifacts, even if the InSpec run found failing tests - name: VALIDATE - Save Test Result JSON - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run_attested.json diff --git a/src/courses/advanced/10.md b/src/courses/advanced/10.md index 15f258db5..bbf17f586 100644 --- a/src/courses/advanced/10.md +++ b/src/courses/advanced/10.md @@ -26,7 +26,7 @@ First, we need to make sure that the node that runs our pipeline will have acces # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 ``` @tab `pipeline.yml` after adding more steps @@ -62,7 +62,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 ``` ::: @@ -128,7 +128,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -195,7 +195,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -277,7 +277,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -335,7 +335,7 @@ Let's run InSpec: # save our results to the pipeline artifacts, even if the InSpec run found failing tests - name: VALIDATE - Save Test Result JSON - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run_attested.json ``` @@ -373,7 +373,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -418,7 +418,7 @@ jobs: # save our results to the pipeline artifacts, even if the InSpec run found failing tests - name: VALIDATE - Save Test Result JSON - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run_attested.json ``` @@ -623,7 +623,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -668,7 +668,7 @@ jobs: # save our results to the pipeline artifacts, even if the InSpec run found failing tests - name: VALIDATE - Save Test Result JSON - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run_attested.json diff --git a/src/courses/advanced/11.md b/src/courses/advanced/11.md index ed1204393..d91e38fa9 100644 --- a/src/courses/advanced/11.md +++ b/src/courses/advanced/11.md @@ -67,7 +67,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -112,7 +112,7 @@ jobs: # save our results to the pipeline artifacts, even if the InSpec run found failing tests - name: VALIDATE - Save Test Result JSON - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run_attested.json diff --git a/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md b/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md index 29fb6f780..a37570ce0 100644 --- a/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md +++ b/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md @@ -57,7 +57,7 @@ jobs: aws-secret-access-key: ${{ secrets.SAF_AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Clone full repository so we can push run: git fetch --prune --unshallow - name: Setup Ruby @@ -83,7 +83,7 @@ jobs: with: command_string: 'validate threshold -i spec/results/ec2_rhel-7_${{ matrix.suite }}.json -F ${{ matrix.suite }}.threshold.yml' - name: Save Test Result JSON - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: spec/results/ ``` From 1360b1a0c648915ed2578b7660620096718a53a2 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 17:06:38 -0500 Subject: [PATCH 3/3] Revert version change Signed-off-by: Joyce Quach --- .github/workflows/cypress.yml | 2 +- src/courses/advanced/09.md | 2 +- src/courses/advanced/10.md | 14 +++++++------- src/courses/advanced/11.md | 2 +- ...le Pipeline for Validating an InSpec Profile.md | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 9a0d0f066..69c167e0b 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -10,7 +10,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v3 with: node-version: 22 cache: npm diff --git a/src/courses/advanced/09.md b/src/courses/advanced/09.md index 8064b6297..9fcb639c0 100644 --- a/src/courses/advanced/09.md +++ b/src/courses/advanced/09.md @@ -81,7 +81,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check diff --git a/src/courses/advanced/10.md b/src/courses/advanced/10.md index bbf17f586..4fc0622aa 100644 --- a/src/courses/advanced/10.md +++ b/src/courses/advanced/10.md @@ -26,7 +26,7 @@ First, we need to make sure that the node that runs our pipeline will have acces # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 ``` @tab `pipeline.yml` after adding more steps @@ -62,7 +62,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 ``` ::: @@ -128,7 +128,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -195,7 +195,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -277,7 +277,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -373,7 +373,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check @@ -623,7 +623,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check diff --git a/src/courses/advanced/11.md b/src/courses/advanced/11.md index d91e38fa9..7c0d2e318 100644 --- a/src/courses/advanced/11.md +++ b/src/courses/advanced/11.md @@ -67,7 +67,7 @@ jobs: # checkout the profile, because that's where our profile is! - name: PREP - Check out this repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 # double-check that we don't have any serious issues in our profile code - name: LINT - Run InSpec Check diff --git a/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md b/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md index a37570ce0..dbb4769cf 100644 --- a/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md +++ b/src/courses/advanced/Appendix D - Example Pipeline for Validating an InSpec Profile.md @@ -57,7 +57,7 @@ jobs: aws-secret-access-key: ${{ secrets.SAF_AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Check out repository - uses: actions/checkout@v4 + uses: actions/checkout@v2 - name: Clone full repository so we can push run: git fetch --prune --unshallow - name: Setup Ruby