Skip to content

Commit

Permalink
Update Markdown files to use actions v4
Browse files Browse the repository at this point in the history
Signed-off-by: Joyce Quach <[email protected]>
  • Loading branch information
jtquach1 committed Dec 12, 2024
1 parent 470bba5 commit 07b937a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/courses/advanced/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
20 changes: 10 additions & 10 deletions src/courses/advanced/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```

:::
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/courses/advanced/11.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
```
Expand Down

0 comments on commit 07b937a

Please sign in to comment.