From a1c192a607724bd578e00ad7a16cf94eeceb74e3 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Thu, 7 May 2026 09:27:28 -0400 Subject: [PATCH] Fix #995, update github action versions Use the latest version of actions, which should resolve deprecation warnings when the workflows run --- .github/workflows/app-static-analysis-reusable.yml | 2 +- .github/workflows/build-cfs-multitarget.yml | 6 +++--- .github/workflows/build-doc-reusable.yml | 6 +++--- .github/workflows/build-run-app-reusable.yml | 6 +++--- .github/workflows/cfs-wiki.yml | 6 +++--- .github/workflows/changelog.yml | 4 ++-- .github/workflows/codeql-reusable.yml | 2 +- .github/workflows/format-check.yml | 4 ++-- .github/workflows/mcdc-reusable.yml | 12 ++++++------ .github/workflows/test-cfs-qemu.yml | 6 +++--- .github/workflows/unit-test-coverage-reusable.yml | 10 +++++----- .github/workflows/update-bundle.yml | 2 +- actions/cppcheck/action.yml | 4 ++-- actions/setup-app/action.yml | 8 ++++---- 14 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/app-static-analysis-reusable.yml b/.github/workflows/app-static-analysis-reusable.yml index 1ff37602e..d7e852ad6 100644 --- a/.github/workflows/app-static-analysis-reusable.yml +++ b/.github/workflows/app-static-analysis-reusable.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout Source - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: source diff --git a/.github/workflows/build-cfs-multitarget.yml b/.github/workflows/build-cfs-multitarget.yml index 7d0f67794..cc98e8313 100644 --- a/.github/workflows/build-cfs-multitarget.yml +++ b/.github/workflows/build-cfs-multitarget.yml @@ -64,7 +64,7 @@ jobs: cat /etc/os-release - name: Checkout cFS with submodules - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: submodules: true token: ${{ secrets.GH_PAT || github.token }} @@ -111,7 +111,7 @@ jobs: fi - name: Upload all artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.config-name }}-bin path: ./*.tar.${{ inputs.compression-type }} @@ -122,4 +122,4 @@ jobs: - name: Generate Coverage Report if: ${{ inputs.check-coverage }} - run: make ${{ inputs.config-name }}.lcov \ No newline at end of file + run: make ${{ inputs.config-name }}.lcov diff --git a/.github/workflows/build-doc-reusable.yml b/.github/workflows/build-doc-reusable.yml index 9bc5b32fe..1bc5320b7 100644 --- a/.github/workflows/build-doc-reusable.yml +++ b/.github/workflows/build-doc-reusable.yml @@ -94,7 +94,7 @@ jobs: mv build/docs/${{ matrix.target }}/${{ matrix.target }}-warnings.log . - name: Archive Document Build Logs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.target }}_doc_build_logs path: | @@ -131,7 +131,7 @@ jobs: - name: Archive PDF if: ${{ inputs.buildpdf == true }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.target }}_pdf - path: ./deploy/${{ matrix.target }}.pdf \ No newline at end of file + path: ./deploy/${{ matrix.target }}.pdf diff --git a/.github/workflows/build-run-app-reusable.yml b/.github/workflows/build-run-app-reusable.yml index 260bd1c4d..d77893858 100644 --- a/.github/workflows/build-run-app-reusable.yml +++ b/.github/workflows/build-run-app-reusable.yml @@ -96,7 +96,7 @@ jobs: done - name: Upload all artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.app-name }}-bin path: ./*.tar.xz @@ -108,7 +108,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ${{ inputs.app-name }}-bin path: ${{ inputs.app-name }}-bin @@ -160,7 +160,7 @@ jobs: - name: Archive results if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cFS_startup_log path: cFS_startup_cpu1.txt diff --git a/.github/workflows/cfs-wiki.yml b/.github/workflows/cfs-wiki.yml index f3186d1b9..018f7a17e 100644 --- a/.github/workflows/cfs-wiki.yml +++ b/.github/workflows/cfs-wiki.yml @@ -16,7 +16,7 @@ jobs: steps: # Checks out a copy of your repository on the ubuntu-latest machine - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: submodules: true @@ -26,7 +26,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Archive CCB agenda artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ccb-agenda - path: ./CCBAgenda.md \ No newline at end of file + path: ./CCBAgenda.md diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 761cc088e..24e1697a7 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Run Changelog uses: heinrichreimer/github-changelog-generator-action@v2.1.1 @@ -32,7 +32,7 @@ jobs: author: false - name: "Upload changelog" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: "Changelog" path: CHANGELOG.md diff --git a/.github/workflows/codeql-reusable.yml b/.github/workflows/codeql-reusable.yml index 8bf8000af..0df9dfde8 100644 --- a/.github/workflows/codeql-reusable.yml +++ b/.github/workflows/codeql-reusable.yml @@ -182,4 +182,4 @@ jobs: inputs.component-path == 'osal-bundle' && format('{0}/osal', github.workspace) || (contains(inputs.component-path, 'apps') || contains(inputs.component-path, 'tools')) && format('{0}/{1}', github.workspace, inputs.component-path) || github.workspace - }} \ No newline at end of file + }} diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index a101092fe..3f760b38d 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -40,7 +40,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: repo @@ -60,7 +60,7 @@ jobs: # Otherwise if there was a failure the file should be non-empty - name: Archive difference artifacts if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: style_differences path: style_differences.txt diff --git a/.github/workflows/mcdc-reusable.yml b/.github/workflows/mcdc-reusable.yml index 2c9c536a9..f21229788 100644 --- a/.github/workflows/mcdc-reusable.yml +++ b/.github/workflows/mcdc-reusable.yml @@ -111,7 +111,7 @@ jobs: - name: Archive unit test results # Archive unit test results if tests ran, even if step failed if: ${{ env.TESTS_RAN == 'true' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: Unit test results path: | @@ -120,7 +120,7 @@ jobs: - name: Archive MCDC results # Archive MCDC results if tests ran, even if step failed if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: MCDC results path: | @@ -137,7 +137,7 @@ jobs: steps: - name: Checkout MCDC Script - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: nasa/cFS path: workflows @@ -155,7 +155,7 @@ jobs: path: ./main-branch-results - name: Downloads PR artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: MCDC results @@ -201,9 +201,9 @@ jobs: - name: Archive mcdc comparison # Upload if success or failure which supports skipping, unlike always() if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: MCDC main branch comparison path: | mcdc_comment.txt - mcdc_compare.txt \ No newline at end of file + mcdc_compare.txt diff --git a/.github/workflows/test-cfs-qemu.yml b/.github/workflows/test-cfs-qemu.yml index 4c0a0226e..cb1a1d332 100644 --- a/.github/workflows/test-cfs-qemu.yml +++ b/.github/workflows/test-cfs-qemu.yml @@ -40,7 +40,7 @@ jobs: container: ghcr.io/core-flight-system/cfsbuildenv-doxygen:latest steps: - name: Checkout Bundle - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: submodules: true @@ -155,7 +155,7 @@ jobs: # echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token # gh run download 58922 -p ${{ matrix.config }}-bin # ls -lR . - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ${{ matrix.config }}-bin path: ${{ matrix.config }}-bin @@ -207,4 +207,4 @@ jobs: if: always() uses: nasa/cFS/actions/stop-cfs-container@dev with: - container-id: ${{ steps.start-cpu1.outputs.container-id }} \ No newline at end of file + container-id: ${{ steps.start-cpu1.outputs.container-id }} diff --git a/.github/workflows/unit-test-coverage-reusable.yml b/.github/workflows/unit-test-coverage-reusable.yml index 2328ebbdb..b4862dd2f 100644 --- a/.github/workflows/unit-test-coverage-reusable.yml +++ b/.github/workflows/unit-test-coverage-reusable.yml @@ -65,7 +65,7 @@ jobs: echo "APP_DEP_LOWER=$(echo ${APP_DEP##*/} | sed 's/[A-Z]/\L&/g')" >> $GITHUB_ENV - name: Checkout CFE - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: nasa/cFE path: cfe @@ -79,13 +79,13 @@ jobs: org: nasa - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: apps/${{ env.APP_LOWER }} - name: Checkout Dependency if: ${{ inputs.dependency != '' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: ${{ inputs.dependency }} path: apps/${{ inputs.dependency }} @@ -148,10 +148,10 @@ jobs: - name: Archive results # Upload if success or failure which supports skipping, unlike always() if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: Unit test and coverage results path: | test_results.txt lcov_out.txt - lcov \ No newline at end of file + lcov diff --git a/.github/workflows/update-bundle.yml b/.github/workflows/update-bundle.yml index 3c13b4c54..9bd96c3c3 100644 --- a/.github/workflows/update-bundle.yml +++ b/.github/workflows/update-bundle.yml @@ -40,7 +40,7 @@ jobs: steps: - name: Checkout bundle - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: repository: ${{ github.repository }} submodules: true diff --git a/actions/cppcheck/action.yml b/actions/cppcheck/action.yml index 953537f54..3e94d4026 100644 --- a/actions/cppcheck/action.yml +++ b/actions/cppcheck/action.yml @@ -72,11 +72,11 @@ runs: run: xsltproc cppcheck-xml2text.xslt cppcheck_err.xml | tee $GITHUB_STEP_SUMMARY cppcheck_err.txt - name: Archive static analysis artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cppcheck-errors path: ./*cppcheck_err.* - name: Check for reported errors shell: bash - run: tail -n 1 cppcheck_err.txt | grep -q '^\*\*0 error(s) reported\*\*$' \ No newline at end of file + run: tail -n 1 cppcheck_err.txt | grep -q '^\*\*0 error(s) reported\*\*$' diff --git a/actions/setup-app/action.yml b/actions/setup-app/action.yml index 609bffe8f..8f8cc4ca3 100644 --- a/actions/setup-app/action.yml +++ b/actions/setup-app/action.yml @@ -32,7 +32,7 @@ runs: echo "APP_DEP_LOWER=$(echo ${APP_DEP##*/} | sed 's/[A-Z]/\L&/g')" >> $GITHUB_ENV - name: Checkout cFE - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: nasa/cFE path: ./cfe @@ -47,7 +47,7 @@ runs: - name: Checkout Dependency if: ${{ inputs.dependency != '' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: ${{ inputs.dependency }} path: ./apps/${{ inputs.dependency }} @@ -55,7 +55,7 @@ runs: - name: Checkout App Repo if: inputs.app-name != 'cFS' && inputs.app-name != 'cFE' - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ./apps/${{ env.APP_LOWER }} @@ -84,4 +84,4 @@ runs: run: | mkdir -p $GITHUB_WORKSPACE/build echo DESTDIR=$GITHUB_WORKSPACE/build >> $GITHUB_ENV - cd $GITHUB_WORKSPACE/build && cmake ${{ inputs.cmake-options }} "$GITHUB_WORKSPACE/cfe" \ No newline at end of file + cd $GITHUB_WORKSPACE/build && cmake ${{ inputs.cmake-options }} "$GITHUB_WORKSPACE/cfe"