From 07b937a7c759f5f0b3c69a3cf7d649ad77f40f20 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 14:54:13 -0500 Subject: [PATCH] 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/ ```