From 1e772d82deb7aa9c27d2a76a7adbb237670a22d7 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 17:02:18 -0500 Subject: [PATCH] Update Markdown files to use artifact actions v4 Signed-off-by: Joyce Quach --- .github/workflows/cypress.yml | 4 ++-- .github/workflows/deploy-docs.yml | 4 ++-- src/courses/advanced/09.md | 2 +- src/courses/advanced/10.md | 4 ++-- src/courses/advanced/11.md | 2 +- ...x D - Example Pipeline for Validating an InSpec Profile.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index f516dcb..7818f09 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: 18 cache: npm @@ -19,4 +19,4 @@ jobs: uses: cypress-io/github-action@v6 with: build: npm run docs:build - start: npm run ci \ No newline at end of file + start: npm run ci diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 81362b7..fe4f9ef 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: npm @@ -31,4 +31,4 @@ jobs: TARGET_REPO: mitre/saf-training TARGET_BRANCH: gh-pages BUILD_SCRIPT: npm ci && npm run docs:build - BUILD_DIR: src/.vuepress/dist/ \ No newline at end of file + BUILD_DIR: src/.vuepress/dist/ diff --git a/src/courses/advanced/09.md b/src/courses/advanced/09.md index 99afbb1..5416ab5 100644 --- a/src/courses/advanced/09.md +++ b/src/courses/advanced/09.md @@ -100,7 +100,7 @@ jobs: --reporter cli json:results/pipeline_run.json - name: VALIDATE - Save Test Result JSON # save our results to the pipeline artifacts, even if the InSpec run found failing tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run.json diff --git a/src/courses/advanced/10.md b/src/courses/advanced/10.md index 9ca61ff..86c53dc 100644 --- a/src/courses/advanced/10.md +++ b/src/courses/advanced/10.md @@ -256,7 +256,7 @@ Let's run InSpec: --reporter cli json:results/pipeline_run.json - name: VALIDATE - Save Test Result JSON # save our results to the pipeline artifacts, even if the InSpec run found failing tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run.json ``` @@ -314,7 +314,7 @@ jobs: --target docker://nginx \ --reporter cli json:results/pipeline_run.json - name: VALIDATE - Save Test Result JSON # save our results to the pipeline artifacts, even if the InSpec run found failing tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run.json ``` diff --git a/src/courses/advanced/11.md b/src/courses/advanced/11.md index 45392c6..bd72eac 100644 --- a/src/courses/advanced/11.md +++ b/src/courses/advanced/11.md @@ -149,7 +149,7 @@ jobs: --reporter cli json:results/pipeline_run.json - name: VALIDATE - Save Test Result JSON # save our results to the pipeline artifacts, even if the InSpec run found failing tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: results/pipeline_run.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 43f10bf..05d06c8 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 @@ -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/ ```