From e08bef97f365355f94000a342e4f57b70047dcfc Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Tue, 2 Jan 2024 10:22:57 -0600 Subject: [PATCH] Update GitHub Artifacts Action Steps to v4 --- .github/workflows/automatus-cs8.yaml | 12 ++++++------ .github/workflows/automatus-cs9.yaml | 12 ++++++------ .github/workflows/automatus-sanity.yaml | 4 ++-- .github/workflows/automatus-sle15.yaml | 12 ++++++------ .github/workflows/automatus.yaml | 12 ++++++------ .github/workflows/gh-pages.yaml | 2 +- .github/workflows/nightly_build.yml | 2 +- .github/workflows/srg-mapping-table.yaml | 8 ++++---- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/automatus-cs8.yaml b/.github/workflows/automatus-cs8.yaml index e1158b8d30e..233250912f5 100644 --- a/.github/workflows/automatus-cs8.yaml +++ b/.github/workflows/automatus-cs8.yaml @@ -37,7 +37,7 @@ jobs: - name: Test if there are no content changes run: echo "CTF_OUTPUT_SIZE=$(stat --printf="%s" output.json)" >> $GITHUB_OUTPUT id: ctf - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: output.json @@ -55,7 +55,7 @@ jobs: - name: Build product if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} run: ./build_product rhel8 --derivatives - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ${{ env.DATASTREAM }} @@ -70,7 +70,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Get cached CTF output - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 id: get_ctf_output with: name: output.json @@ -127,7 +127,7 @@ jobs: with: path: 'output.json' prop_path: 'ansible' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ${{ env.DATASTREAM }} @@ -148,7 +148,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{steps.bash.outputs.prop == 'True' && steps.check_results_bash.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_bash path: logs_bash/ @@ -164,7 +164,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{ steps.ansible.outputs.prop == 'True' && steps.check_results_ansible.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_ansible path: logs_ansible/ diff --git a/.github/workflows/automatus-cs9.yaml b/.github/workflows/automatus-cs9.yaml index df7c72c3df2..d271afb94a2 100644 --- a/.github/workflows/automatus-cs9.yaml +++ b/.github/workflows/automatus-cs9.yaml @@ -37,7 +37,7 @@ jobs: - name: Test if there are no content changes run: echo "CTF_OUTPUT_SIZE=$(stat --printf="%s" output.json)" >> $GITHUB_OUTPUT id: ctf - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: output.json @@ -55,7 +55,7 @@ jobs: - name: Build product if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} run: ./build_product rhel9 --derivatives - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ${{ env.DATASTREAM }} @@ -70,7 +70,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Get cached CTF output - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 id: get_ctf_output with: name: output.json @@ -127,7 +127,7 @@ jobs: with: path: 'output.json' prop_path: 'ansible' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ${{ env.DATASTREAM }} @@ -148,7 +148,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{steps.bash.outputs.prop == 'True' && steps.check_results_bash.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_bash path: logs_bash/ @@ -164,7 +164,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{ steps.ansible.outputs.prop == 'True' && steps.check_results_ansible.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_ansible path: logs_ansible/ diff --git a/.github/workflows/automatus-sanity.yaml b/.github/workflows/automatus-sanity.yaml index 8fc75fe8fff..133818afe37 100644 --- a/.github/workflows/automatus-sanity.yaml +++ b/.github/workflows/automatus-sanity.yaml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 - name: Build product run: ./build_product fedora --debug - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ env.DATASTREAM }} path: build/${{ env.DATASTREAM }} @@ -47,7 +47,7 @@ jobs: sudo chown root:root /usr/local/bin/oscap-ssh rm -f oscap-ssh - name: Get Datastream - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.DATASTREAM }} - name: Check One Rule diff --git a/.github/workflows/automatus-sle15.yaml b/.github/workflows/automatus-sle15.yaml index b2eafe8b72e..6839d2c8dfc 100644 --- a/.github/workflows/automatus-sle15.yaml +++ b/.github/workflows/automatus-sle15.yaml @@ -45,7 +45,7 @@ jobs: - name: Test if there are no content changes run: echo "CTF_OUTPUT_SIZE=$(stat --printf="%s" output.json)" >> $GITHUB_OUTPUT id: ctf - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: output.json @@ -63,7 +63,7 @@ jobs: - name: Build product if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} run: ./build_product sle15 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ${{ env.DATASTREAM }} @@ -78,7 +78,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Get cached CTF output - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 id: get_ctf_output with: name: output.json @@ -135,7 +135,7 @@ jobs: with: path: 'output.json' prop_path: 'ansible' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ${{ env.DATASTREAM }} @@ -156,7 +156,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{steps.bash.outputs.prop == 'True' && steps.check_results_bash.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_bash path: logs_bash/ @@ -172,7 +172,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{ steps.ansible.outputs.prop == 'True' && steps.check_results_ansible.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_ansible path: logs_ansible/ diff --git a/.github/workflows/automatus.yaml b/.github/workflows/automatus.yaml index 18f299392f1..dfde0cafdde 100644 --- a/.github/workflows/automatus.yaml +++ b/.github/workflows/automatus.yaml @@ -35,7 +35,7 @@ jobs: - name: Test if there are no content changes run: echo "CTF_OUTPUT_SIZE=$(stat --printf="%s" output.json)" >> $GITHUB_OUTPUT id: ctf - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: output.json @@ -53,7 +53,7 @@ jobs: - name: Build product if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} run: ./build_product ${{steps.product.outputs.prop}} --datastream-only - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ssg-${{steps.product.outputs.prop}}-ds.xml @@ -68,7 +68,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Get cached CTF output - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 id: get_ctf_output with: name: output.json @@ -125,7 +125,7 @@ jobs: with: path: 'output.json' prop_path: 'ansible' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} with: name: ssg-${{steps.product.outputs.prop}}-ds.xml @@ -146,7 +146,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{steps.bash.outputs.prop == 'True' && steps.check_results_bash.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_bash path: logs_bash/ @@ -162,7 +162,7 @@ jobs: continue-on-error: true - name: Upload logs in case of failure if: ${{ steps.ansible.outputs.prop == 'True' && steps.check_results_ansible.outcome == 'success' && steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: logs_ansible path: logs_ansible/ diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index e2ae7074c01..f9b62d24b5c 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -58,7 +58,7 @@ jobs: git-config-name: openscap-ci git-config-email: openscap-ci@gmail.com - name: Upload artifact if the event is pull request - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ github.event_name == 'pull_request' }} with: name: built-content diff --git a/.github/workflows/nightly_build.yml b/.github/workflows/nightly_build.yml index 7edaa4fa59b..fa5e6c6076c 100644 --- a/.github/workflows/nightly_build.yml +++ b/.github/workflows/nightly_build.yml @@ -30,7 +30,7 @@ jobs: run: ninja -j2 package_source working-directory: ./build - name: 'Upload Artifact' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Nightly Build path: | diff --git a/.github/workflows/srg-mapping-table.yaml b/.github/workflows/srg-mapping-table.yaml index 83f8d1de878..22f279af1a0 100644 --- a/.github/workflows/srg-mapping-table.yaml +++ b/.github/workflows/srg-mapping-table.yaml @@ -49,22 +49,22 @@ jobs: run: python3 utils/create_srg_export.py -c controls/srg_gpos.yml -p rhel9 -m shared/references/disa-os-srg-v2r3.xml --out-format html --output $PAGES_DIR/srg-mapping-rhel9.html env: PYTHONPATH: ${{ github.workspace }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ github.event_name == 'pull_request' }} with: name: srg-mapping-rhel9.xlsx path: ${{ env.PAGES_DIR }}/srg-mapping-rhel9.xlsx - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ github.event_name == 'pull_request' }} with: name: srg-mapping-rhel9.html path: ${{ env.PAGES_DIR }}/srg-mapping-rhel9.html - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ github.event_name == 'pull_request' }} with: name: srg-mapping-ocp4.xlsx path: ${{ env.PAGES_DIR }}/srg-mapping-ocp4.xlsx - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ github.event_name == 'pull_request' }} with: name: srg-mapping-ocp4.html