Skip to content

Commit

Permalink
Use actions/checkout@v3
Browse files Browse the repository at this point in the history
actions/checkout@v2 uses a version of node that is unsuported and may not work
soon. See
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
  • Loading branch information
Mab879 committed May 9, 2023
1 parent b47f3c2 commit 5316426
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/automatus-cs8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Install deps python
run: pip install gitpython xmldiff
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout (CTF)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ComplianceAsCode/content-test-filtering
path: ctf
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
apt-get: cmake ninja-build libopenscap8 libxml2-utils xsltproc python3-jinja2 python3-yaml ansible-lint podman
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Get cached CTF output
uses: actions/download-artifact@v2
id: get_ctf_output
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/automatus-cs9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Install deps python
run: pip install gitpython xmldiff
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout (CTF)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ComplianceAsCode/content-test-filtering
path: ctf
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
apt-get: cmake ninja-build libopenscap8 libxml2-utils xsltproc python3-jinja2 python3-yaml ansible-lint podman
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Get cached CTF output
uses: actions/download-artifact@v2
id: get_ctf_output
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/automatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- name: Install deps python
run: pip install gitpython xmldiff
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout (CTF)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ComplianceAsCode/content-test-filtering
path: ctf
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
with:
apt-get: cmake ninja-build libopenscap8 libxml2-utils xsltproc python3-jinja2 python3-yaml ansible-lint podman
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Get cached CTF output
uses: actions/download-artifact@v2
id: get_ctf_output
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/compare-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install deps python
run: pip install gitpython xmldiff
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -27,12 +27,12 @@ jobs:
run: echo "::set-output name=FORK_POINT::$(git merge-base origin/$BASE_BRANCH ${{ github.event.pull_request.head.sha }})"
id: fork_point
- name: Checkout fork point
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ steps.fork_point.outputs.FORK_POINT }}
fetch-depth: 0
- name: Checkout (CTF)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ComplianceAsCode/content-test-filtering
path: ctf
Expand All @@ -59,7 +59,7 @@ jobs:
run: cp build/ssg-${{steps.product.outputs.prop}}-ds.xml ssg-${{steps.product.outputs.prop}}-ds.xml
- name: Checkout
if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }}
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
clean: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ctf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
apt-get: git python3-jinja2 python3-yaml python3-setuptools python3-deepdiff python3-git python3-github python3-requests xmldiff
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -25,12 +25,12 @@ jobs:
run: echo "::set-output name=FORK_POINT::$(git merge-base origin/$BASE_BRANCH ${{ github.event.pull_request.head.sha }})"
id: fork_point
- name: Checkout fork point
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ steps.fork_point.outputs.FORK_POINT }}
fetch-depth: 0
- name: Checkout (CTF)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ComplianceAsCode/content-test-filtering
path: ctf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gate-lint-ansible-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Deps
run: dnf install -y cmake make ninja-build openscap-utils python3-pyyaml python3-setuptools python3-jinja2 python3-pygithub ansible ansible-lint libxslt git
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Configure
run: cmake -DSSG_PRODUCT_DEFAULT=OFF -DSSG_PRODUCT_RHEL7=ON -DSSG_PRODUCT_RHEL8=ON -G Ninja ..
working-directory: ./build
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Deps
run: yum install -y cmake make openscap-utils PyYAML libxslt xml-common python-jinja2 python-setuptools
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: |-
./build_product \
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install Deps
run: zypper install -y git cmake make openscap-utils python3-PyYAML bats python3-pytest python3-pytest-cov python3-Jinja2 python3-setuptools libxslt-tools libxml2-tools ShellCheck
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: ./build_product alinux2 alinux3 chromium fedora firefox rhcos4 rhel7 rhel8 rhel9 sle12 sle15 ubuntu2004 ubuntu2204 uos20
- name: Test
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Install deps python
run: pip3 install ruamel.yaml yamlpath pyyaml==5.4.1
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
env:
ADDITIONAL_CMAKE_OPTIONS: "-DSSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED=ON"
Expand All @@ -81,7 +81,7 @@ jobs:
with:
apt-get: cmake ninja-build libopenscap8 libxml2-utils xsltproc python3-jinja2 python3-yaml python3-setuptools ansible-lint python3-github bats python3-pytest python3-pytest-cov shellcheck
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
env:
ADDITIONAL_CMAKE_OPTIONS: "-DSSG_SCE_ENABLED:BOOL=ON"
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
with:
apt-get: cmake ninja-build libopenscap8 libxml2-utils xsltproc python3-jinja2 python3-yaml python3-setuptools ansible-lint python3-github bats python3-pytest python3-pytest-cov shellcheck
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
env:
ADDITIONAL_CMAKE_OPTIONS: "-DSSG_SCE_ENABLED:BOOL=ON"
Expand All @@ -137,7 +137,7 @@ jobs:
- name: Install deps python
run: pip install ruamel.yaml yamlpath types-openpyxl types-PyYAML xmldiff openpyxl openpyxl-stubs pandas cmakelint
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: |-
./build_product \
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
- name: Install deps python
run: pip install ruamel.yaml yamlpath types-openpyxl types-PyYAML openpyxl openpyxl-stubs pandas
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: |-
./build_product \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install deps python
run: pip3 install json2html
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug
working-directory: ./build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Dependencies
run: dnf install -y cmake ninja-build openscap-utils python3-pyyaml python3-jinja2 python3-pytest ansible-lint libxslt ansible
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Configure
run: cmake -G Ninja ..
working-directory: ./build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Deps
run: dnf install -y cmake ninja-build openscap-utils python3-pyyaml python3-jinja2 python3-pytest ansible ansible-lint libxslt
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Configure
run: cmake ..
working-directory: ./build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/srg-mapping-table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install deps python
run: pip3 install pandas openpyxl
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Build
run: cmake .. -G Ninja
working-directory: ./build
Expand Down

0 comments on commit 5316426

Please sign in to comment.