From 783d23bf91b7f5a9711d3a738de379dd3b9a0eec Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Wed, 21 Feb 2024 09:36:35 +0100 Subject: [PATCH] Upgrade CI actions (#573) --- .github/actions/test/action.yml | 8 ++++---- .github/workflows/badges.yml | 6 +++--- .github/workflows/publish.yml | 10 +++++----- .github/workflows/test-results.yml | 2 +- README.md | 20 ++++++++++---------- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 0d3c6968..40cf46fd 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -22,7 +22,7 @@ runs: - name: Setup Python if: inputs.python-version != 'installed' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} @@ -49,7 +49,7 @@ runs: shell: bash - name: Cache PIP Packages - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache with: path: ${{ steps.os.outputs.pip-cache }} @@ -92,7 +92,7 @@ runs: shell: bash - name: Upload changed expectation files if: steps.changes.outcome == 'failure' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Changed expectations path: changed-expectations.zip @@ -128,7 +128,7 @@ runs: - name: Upload Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results (python-${{ inputs.python-version }}, ${{ inputs.os }}) path: | diff --git a/.github/workflows/badges.yml b/.github/workflows/badges.yml index 0bcfa397..f6bd1292 100644 --- a/.github/workflows/badges.yml +++ b/.github/workflows/badges.yml @@ -65,7 +65,7 @@ jobs: uses: ./misc/action/fetch-workflows - name: Create badge - uses: emibcn/badge-action@4209421db54c8764d8932070ffd0f81715a629bf + uses: emibcn/badge-action@808173dd03e2f30c980d03ee49e181626088eee8 with: label: GitHub Workflows status: ${{ steps.workflows.outputs.total_workflows }} @@ -77,14 +77,14 @@ jobs: echo '{"subject": "GitHub Workflows", "status": "${{ steps.workflows.outputs.total_workflows }}", "color": "blue"}' > workflows.json - name: Upload badge to Gist - uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d + uses: andymckay/append-gist-action@6e8d64427fe47cbacf4ab6b890411f1d67c07f3e with: token: ${{ secrets.GIST_TOKEN }} gistURL: https://gist.githubusercontent.com/EnricoMi/612cb538c14731f1a8fefe504f519395 file: workflows.svg - name: Upload JSON to Gist - uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d + uses: andymckay/append-gist-action@6e8d64427fe47cbacf4ab6b890411f1d67c07f3e with: token: ${{ secrets.GIST_TOKEN }} gistURL: https://gist.githubusercontent.com/EnricoMi/612cb538c14731f1a8fefe504f519395 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0107727e..010dae01 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v4 - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts @@ -79,7 +79,7 @@ jobs: outputs: type=docker - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts @@ -205,9 +205,9 @@ jobs: dockerfile: ./Dockerfile annotations: true - name: Upload SARIF artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: SARIF + name: SARIF ${{ matrix.arch }} path: ${{ steps.scan.outputs.sarif }} - name: Upload SARIF file if: always() && steps.scan.outputs.sarif != '' @@ -288,7 +288,7 @@ jobs: shell: bash - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts diff --git a/.github/workflows/test-results.yml b/.github/workflows/test-results.yml index 6dd2d3f2..50e46eb6 100644 --- a/.github/workflows/test-results.yml +++ b/.github/workflows/test-results.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Download and Extract Artifacts - uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 + uses: dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d with: run_id: ${{ github.event.workflow_run.id }} path: artifacts diff --git a/README.md b/README.md index 2f6cb4dc..2747f739 100644 --- a/README.md +++ b/README.md @@ -512,10 +512,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -524,7 +524,7 @@ jobs: - name: Upload Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results (Python ${{ matrix.python-version }}) path: pytest.xml @@ -548,7 +548,7 @@ jobs: steps: - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts @@ -589,7 +589,7 @@ event_file: runs-on: ubuntu-latest steps: - name: Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Event File path: ${{ github.event_path }} @@ -601,7 +601,7 @@ Adjust the value of `path` to fit your setup: ```yaml - name: Upload Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results path: | @@ -659,7 +659,7 @@ jobs: steps: - name: Download and Extract Artifacts - uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 + uses: dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d with: run_id: ${{ github.event.workflow_run.id }} path: artifacts @@ -754,7 +754,7 @@ steps: esac - name: Create badge - uses: emibcn/badge-action@d6f51ff11b5c3382b3b88689ae2d6db22d9737d1 + uses: emibcn/badge-action@808173dd03e2f30c980d03ee49e181626088eee8 with: label: Tests status: '${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}' @@ -766,7 +766,7 @@ steps: if: > github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'master' || github.event_name != 'workflow_run' && github.ref == 'refs/heads/master' - uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d + uses: andymckay/append-gist-action@6e8d64427fe47cbacf4ab6b890411f1d67c07f3e with: token: ${{ secrets.GIST_TOKEN }} gistURL: https://gist.githubusercontent.com/{user}/{id} @@ -819,7 +819,7 @@ Self-hosted runners may require setting up a Python environment first: ```yaml - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 ```