From df4c190c6c1d0a1e9c60d55c37ac710705fe0879 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Wed, 20 Dec 2023 19:22:29 +0100 Subject: [PATCH 1/2] Update GitHub Actions versions --- .github/actions/setup_environment/action.yml | 4 +- .github/workflows/ci.yml | 6 +- .github/workflows/codeql.yml | 2 +- .github/workflows/image-optimiser.yml | 2 +- .github/workflows/integration-test.yml | 2 +- .github/workflows/mixpanel-test-data.yml | 6 +- .github/workflows/publish_api_docs.yml | 2 +- .github/workflows/publish_docker_image.yml | 2 +- .github/workflows/publish_helm_chart.yml | 4 +- .github/workflows/publish_to_pypi.yml | 4 +- .github/workflows/publish_to_pypi_nightly.yml | 4 +- .github/workflows/release.yml | 8 +- .github/workflows/replace_api_docs_version | 90 +++++++++---------- .../workflows/setup-python-environment.yml | 41 ++------- .github/workflows/trivy-zenml-core.yml | 2 +- .github/workflows/trivy-zenserver.yml | 2 +- .../update-templates-to-examples.yml | 8 +- 17 files changed, 79 insertions(+), 110 deletions(-) diff --git a/.github/actions/setup_environment/action.yml b/.github/actions/setup_environment/action.yml index 445e8ee96da..f8c7f98e86a 100644 --- a/.github/actions/setup_environment/action.yml +++ b/.github/actions/setup_environment/action.yml @@ -29,7 +29,7 @@ runs: using: "composite" steps: - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.0.0 with: python-version: ${{ inputs.python-version }} @@ -131,4 +131,4 @@ runs: run: | zenml integration list pip list - pip check || true \ No newline at end of file + pip check || true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98f99172d56..c110f7ef96c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5.0.0 with: python-version: "3.8" @@ -160,4 +160,4 @@ jobs: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} test_environment: ${{ matrix.test_environment }} - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 90f9d837d0b..1c0fa6fe0e0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/image-optimiser.yml b/.github/workflows/image-optimiser.yml index dddbd1e9d3b..1a4bc531e08 100644 --- a/.github/workflows/image-optimiser.yml +++ b/.github/workflows/image-optimiser.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: Compress Images uses: calibreapp/image-actions@main diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index f6a86b7becc..7b1cc00aa7e 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -132,7 +132,7 @@ jobs: sudo systemctl restart docker if: inputs.os=='ubuntu-latest' && (contains(inputs.test_environment, 'docker') || contains(inputs.test_environment, 'kubeflow') || contains(inputs.test_environment, 'airflow') || contains(inputs.test_environment, 'kubernetes')) - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/.github/workflows/mixpanel-test-data.yml b/.github/workflows/mixpanel-test-data.yml index 310c58258cd..f4d0a5401c5 100644 --- a/.github/workflows/mixpanel-test-data.yml +++ b/.github/workflows/mixpanel-test-data.yml @@ -14,10 +14,10 @@ jobs: ZENML_ANALYTICS_OPT_IN: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4.1.1 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5.0.0 with: python-version: 3.8 @@ -27,4 +27,4 @@ jobs: python -m pip install analytics-python - name: Post fake metadata to segment - run: python3 scripts/mixpanel_filters_test.py \ No newline at end of file + run: python3 scripts/mixpanel_filters_test.py diff --git a/.github/workflows/publish_api_docs.yml b/.github/workflows/publish_api_docs.yml index 7bfd10ff4eb..4eee6f86a17 100644 --- a/.github/workflows/publish_api_docs.yml +++ b/.github/workflows/publish_api_docs.yml @@ -19,7 +19,7 @@ jobs: PYTHONIOENCODING: "utf-8" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 with: fetch-depth: 0 # fetch all commits/branches including gh-pages diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index 04eacd0baf3..cd8ca3b5b7e 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -19,7 +19,7 @@ jobs: PYTHONIOENCODING: 'utf-8' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4.1.1 - name: Get the version from the github tag ref id: get_version diff --git a/.github/workflows/publish_helm_chart.yml b/.github/workflows/publish_helm_chart.yml index b125b0748c3..c66bef54a98 100644 --- a/.github/workflows/publish_helm_chart.yml +++ b/.github/workflows/publish_helm_chart.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 # The following sed command replaces the version number in Chart.yaml with the tag version. # It replaces the line that starts with "version: " with "version: " @@ -56,4 +56,4 @@ jobs: REPOSITORY: zenml run: | helm package src/zenml/zen_server/deploy/helm - helm push $REPOSITORY-${{ github.ref_name }}.tgz oci://$REGISTRY/$REGISTRY_ALIAS \ No newline at end of file + helm push $REPOSITORY-${{ github.ref_name }}.tgz oci://$REGISTRY/$REGISTRY_ALIAS diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index 9d23b5fa8eb..71b1532910f 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -13,14 +13,14 @@ jobs: PYTHONIOENCODING: 'utf-8' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Get the version from the github tag ref id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5.0.0 with: python-version: '3.8' diff --git a/.github/workflows/publish_to_pypi_nightly.yml b/.github/workflows/publish_to_pypi_nightly.yml index de92d76e527..d2a309d315a 100644 --- a/.github/workflows/publish_to_pypi_nightly.yml +++ b/.github/workflows/publish_to_pypi_nightly.yml @@ -13,12 +13,12 @@ jobs: PYTHONIOENCODING: 'utf-8' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 with: ref: 'develop' - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5.0.0 with: python-version: '3.8' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a909515909..e480a8d7211 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5.0.0 with: python-version: "3.8" @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Set up Python 3.9 - uses: actions/setup-python@v4.8.0 + uses: actions/setup-python@v5.0.0 with: python-version: "3.9" @@ -59,7 +59,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Set up Python 3.9 - uses: actions/setup-python@v4.8.0 + uses: actions/setup-python@v5.0.0 with: python-version: "3.9" diff --git a/.github/workflows/replace_api_docs_version b/.github/workflows/replace_api_docs_version index d7be97a27cc..5c0eec20532 100644 --- a/.github/workflows/replace_api_docs_version +++ b/.github/workflows/replace_api_docs_version @@ -3,54 +3,54 @@ name: Update API docs on: push: branches: - - 'release/**' + - 'release/**' jobs: update_docs: runs-on: ubuntu-latest steps: - - name: Check out branch - uses: actions/checkout@v2 - - - name: Set VERSION - id: set_version - run: | - VERSION=$(echo '${{ github.ref }}' | awk -F "/" '{print $NF}') - echo "::set-output name=version::$VERSION" - - - name: Update API docs links - run: | - DIR="docs/book" - VERSION=${{ steps.set_version.outputs.version }} - - # Use find to iterate over all .md files in the given directory and its subdirectories - find "$DIR" -type f -name "*.md" | while read -r FILE; do - # Move from apidocs.zenml.io to sdkdocs and user the correct version - # Space or end-of-line, no trailing / - sed -i "s#https://apidocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE" - - # Trailing / - sed -i "s#https://apidocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE" - - # Version or "latest" - sed -i "s#https://apidocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE - - # Append the correct version - # Space or end-of-line, no trailing / - sed -i "s#https://sdkdocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE" - - # Trailing / - sed -i "s#https://sdkdocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE" - - # Version or "latest" - sed -i "s#https://sdkdocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE - done - - - name: Commit and push changes - run: | - git config --global user.name 'Code Monkey' - git config --global user.email 'codemonkey@zenml.io' - git add docs/book/toc.md - git commit -m "Update API docs links" || { echo "No changes to commit" && exit 0; } - git push \ No newline at end of file + - name: Check out branch + uses: actions/checkout@v4.1.1 + + - name: Set VERSION + id: set_version + run: | + VERSION=$(echo '${{ github.ref }}' | awk -F "/" '{print $NF}') + echo "::set-output name=version::$VERSION" + + - name: Update API docs links + run: | + DIR="docs/book" + VERSION=${{ steps.set_version.outputs.version }} + + # Use find to iterate over all .md files in the given directory and its subdirectories + find "$DIR" -type f -name "*.md" | while read -r FILE; do + # Move from apidocs.zenml.io to sdkdocs and user the correct version + # Space or end-of-line, no trailing / + sed -i "s#https://apidocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE" + + # Trailing / + sed -i "s#https://apidocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE" + + # Version or "latest" + sed -i "s#https://apidocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE + + # Append the correct version + # Space or end-of-line, no trailing / + sed -i "s#https://sdkdocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE" + + # Trailing / + sed -i "s#https://sdkdocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE" + + # Version or "latest" + sed -i "s#https://sdkdocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE + done + + - name: Commit and push changes + run: | + git config --global user.name 'Code Monkey' + git config --global user.email 'codemonkey@zenml.io' + git add docs/book/toc.md + git commit -m "Update API docs links" || { echo "No changes to commit" && exit 0; } + git push diff --git a/.github/workflows/setup-python-environment.yml b/.github/workflows/setup-python-environment.yml index 77316b434ee..346d52b1165 100644 --- a/.github/workflows/setup-python-environment.yml +++ b/.github/workflows/setup-python-environment.yml @@ -85,41 +85,10 @@ jobs: shell: bash steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 with: ref: ${{ github.event.inputs.git-ref || github.ref }} - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - if: ${{ inputs.os == 'ubuntu-latest' }} - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: true - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: true - swap-storage: true - - - name: clean unnecessary files to save space - if: ${{ inputs.os == 'ubuntu-latest' }} - run: | - sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d - sudo apt -y autoremove --purge - sudo apt -y autoclean - sudo apt clean - rm --recursive --force "$AGENT_TOOLSDIRECTORY" - df -h - - - name: Reinstall packages needed for unit tests - if: ${{ inputs.os == 'ubuntu-latest' }} - run: sudo apt-get update && sudo apt-get install ffmpeg libsm6 libxext6 -y - - name: Setup environment uses: ./.github/actions/setup_environment with: @@ -132,14 +101,14 @@ jobs: - name: Setup tmate session before tests if: ${{ inputs.enable_tmate == 'before-tests' }} - uses: mxschmitt/action-tmate@v3 + uses: mxschmitt/action-tmate@v3.17 - name: Lint check run: | bash scripts/lint.sh - name: Spelling checker - uses: crate-ci/typos@master + uses: crate-ci/typos@1.16.25 with: files: "." config: ./.typos.toml @@ -155,7 +124,7 @@ jobs: run: bash scripts/check-security.sh - name: Markdown link check - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 with: use-quiet-mode: 'yes' use-verbose-mode: 'no' @@ -183,7 +152,7 @@ jobs: - name: Setup tmate session after tests if: ${{ inputs.enable_tmate == 'always' || (inputs.enable_tmate == 'on-failure' && failure()) }} - uses: mxschmitt/action-tmate@v3 + uses: mxschmitt/action-tmate@v3.17 - name: Verify Python Env unaffected run: | diff --git a/.github/workflows/trivy-zenml-core.yml b/.github/workflows/trivy-zenml-core.yml index 51a57554bcc..b10bb5eed55 100644 --- a/.github/workflows/trivy-zenml-core.yml +++ b/.github/workflows/trivy-zenml-core.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: zenml-Trivy vulnerability scanner uses: aquasecurity/trivy-action@master diff --git a/.github/workflows/trivy-zenserver.yml b/.github/workflows/trivy-zenserver.yml index 48423e79fce..d188f547ad0 100644 --- a/.github/workflows/trivy-zenserver.yml +++ b/.github/workflows/trivy-zenserver.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: zenserver-Trivy vulnerability scanner uses: aquasecurity/trivy-action@master diff --git a/.github/workflows/update-templates-to-examples.yml b/.github/workflows/update-templates-to-examples.yml index 4eb0fa90043..09b33bf41e4 100644 --- a/.github/workflows/update-templates-to-examples.yml +++ b/.github/workflows/update-templates-to-examples.yml @@ -71,7 +71,7 @@ jobs: please make the code in zenml-io/template-e2e-batch compatible with new version of\ ZenML core, release it and update release tag in zenml.cli.base.ZENML_PROJECT_TEMPLATES" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 with: ref: ${{ github.event.pull_request.head.ref }} @@ -151,7 +151,7 @@ jobs: please make the code in zenml-io/template-nlp compatible with new version of\ ZenML core, release it and update release tag in zenml.cli.base.ZENML_PROJECT_TEMPLATES" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 with: ref: ${{ github.event.pull_request.head.ref }} @@ -231,7 +231,7 @@ jobs: please make the code in zenml-io/template-starter compatible with new version of\ ZenML core, release it and update release tag in zenml.cli.base.ZENML_PROJECT_TEMPLATES" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 with: ref: ${{ github.event.pull_request.head.ref }} @@ -273,4 +273,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: 'Quickstart template updates in `examples/quickstart` have been pushed.' - }) \ No newline at end of file + }) From df63601f752e4fb297b6581779dba41c49042404 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Wed, 20 Dec 2023 19:40:46 +0100 Subject: [PATCH 2/2] upgrade some of our actions --- .github/workflows/image-optimiser.yml | 2 +- .github/workflows/integration-test.yml | 6 +++--- .github/workflows/pr_labeler.yml | 4 ++-- .github/workflows/publish_api_docs.yml | 2 +- .github/workflows/publish_helm_chart.yml | 2 +- .github/workflows/publish_to_pypi.yml | 2 +- .github/workflows/publish_to_pypi_nightly.yml | 2 +- .github/workflows/setup-python-environment.yml | 2 +- .github/workflows/trivy-zenml-core.yml | 2 +- .github/workflows/trivy-zenserver.yml | 2 +- .github/workflows/update-templates-to-examples.yml | 6 +++--- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/image-optimiser.yml b/.github/workflows/image-optimiser.yml index 1a4bc531e08..b793fd39f1b 100644 --- a/.github/workflows/image-optimiser.yml +++ b/.github/workflows/image-optimiser.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Compress Images - uses: calibreapp/image-actions@main + uses: calibreapp/image-actions@1.1.0 with: # The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories. # See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 7b1cc00aa7e..65901eff586 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -117,7 +117,7 @@ jobs: steps: - name: Maximize space for Docker - uses: easimon/maximize-build-space@v8 + uses: easimon/maximize-build-space@v10 with: root-reserve-mb: 20000 swap-size-mb: 1024 @@ -238,7 +238,7 @@ jobs: - name: Setup tmate session before tests if: ${{ inputs.enable_tmate == 'before-tests' }} - uses: mxschmitt/action-tmate@v3 + uses: mxschmitt/action-tmate@v3.17 with: timeout-minutes: ${{ inputs.tmate_timeout }} @@ -248,7 +248,7 @@ jobs: - name: Setup tmate session after tests if: ${{ inputs.enable_tmate == 'always' || (inputs.enable_tmate == 'on-failure' && failure()) }} - uses: mxschmitt/action-tmate@v3 + uses: mxschmitt/action-tmate@v3.17 with: timeout-minutes: ${{ inputs.tmate_timeout }} diff --git a/.github/workflows/pr_labeler.yml b/.github/workflows/pr_labeler.yml index 0db4dd56cb0..15c1f110f78 100644 --- a/.github/workflows/pr_labeler.yml +++ b/.github/workflows/pr_labeler.yml @@ -14,10 +14,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: JulienKode/team-labeler-action@v0.1.1 + - uses: JulienKode/team-labeler-action@v1.1.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - - uses: TimonVS/pr-labeler-action@v3 + - uses: TimonVS/pr-labeler-action@v4.1.1 with: configuration-path: .github/branch-labels.yml diff --git a/.github/workflows/publish_api_docs.yml b/.github/workflows/publish_api_docs.yml index 4eee6f86a17..f6aa5a4e03e 100644 --- a/.github/workflows/publish_api_docs.yml +++ b/.github/workflows/publish_api_docs.yml @@ -29,7 +29,7 @@ jobs: BRANCH='${{github.ref_name}}' echo ::set-output name=VERSION::${BRANCH#release/} - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4.0.1 with: node-version: "14" - run: npm install diff --git a/.github/workflows/publish_helm_chart.yml b/.github/workflows/publish_helm_chart.yml index c66bef54a98..4094c43c283 100644 --- a/.github/workflows/publish_helm_chart.yml +++ b/.github/workflows/publish_helm_chart.yml @@ -44,7 +44,7 @@ jobs: #TODO: revisit the pinned helm version + find a higher version - name: install helm with version 3.9.2 - uses: azure/setup-helm@v3 + uses: azure/setup-helm@v3.5 with: version: "v3.9.2" # default is latest (stable) id: install-helm diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index 71b1532910f..e32fe5593f4 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -25,7 +25,7 @@ jobs: python-version: '3.8' - name: Install Poetry - uses: snok/install-poetry@v1 + uses: snok/install-poetry@v1.3.4 with: virtualenvs-create: true virtualenvs-in-project: true diff --git a/.github/workflows/publish_to_pypi_nightly.yml b/.github/workflows/publish_to_pypi_nightly.yml index d2a309d315a..d4363501904 100644 --- a/.github/workflows/publish_to_pypi_nightly.yml +++ b/.github/workflows/publish_to_pypi_nightly.yml @@ -23,7 +23,7 @@ jobs: python-version: '3.8' - name: Install Poetry - uses: snok/install-poetry@v1 + uses: snok/install-poetry@v1.3.4 with: virtualenvs-create: true virtualenvs-in-project: true diff --git a/.github/workflows/setup-python-environment.yml b/.github/workflows/setup-python-environment.yml index 346d52b1165..7e344c4d563 100644 --- a/.github/workflows/setup-python-environment.yml +++ b/.github/workflows/setup-python-environment.yml @@ -108,7 +108,7 @@ jobs: bash scripts/lint.sh - name: Spelling checker - uses: crate-ci/typos@1.16.25 + uses: crate-ci/typos@v1.16.25 with: files: "." config: ./.typos.toml diff --git a/.github/workflows/trivy-zenml-core.yml b/.github/workflows/trivy-zenml-core.yml index b10bb5eed55..da721bbc7e6 100644 --- a/.github/workflows/trivy-zenml-core.yml +++ b/.github/workflows/trivy-zenml-core.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: zenml-Trivy vulnerability scanner - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.16.0 with: image-ref: "docker.io/zenmldocker/zenml:latest" format: "sarif" diff --git a/.github/workflows/trivy-zenserver.yml b/.github/workflows/trivy-zenserver.yml index d188f547ad0..39be77842e2 100644 --- a/.github/workflows/trivy-zenserver.yml +++ b/.github/workflows/trivy-zenserver.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: zenserver-Trivy vulnerability scanner - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.16.0 with: image-ref: "docker.io/zenmldocker/zenml-server:latest" format: "sarif" diff --git a/.github/workflows/update-templates-to-examples.yml b/.github/workflows/update-templates-to-examples.yml index 09b33bf41e4..8f6a9f7cb5d 100644 --- a/.github/workflows/update-templates-to-examples.yml +++ b/.github/workflows/update-templates-to-examples.yml @@ -104,7 +104,7 @@ jobs: - name: Create PR comment if: steps.check_changes.outputs.changes == 'true' - uses: actions/github-script@v4 + uses: actions/github-script@v7.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -183,7 +183,7 @@ jobs: - name: Create PR comment if: steps.check_changes.outputs.changes == 'true' - uses: actions/github-script@v4 + uses: actions/github-script@v7.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -264,7 +264,7 @@ jobs: - name: Create PR comment if: steps.check_changes.outputs.changes == 'true' - uses: actions/github-script@v4 + uses: actions/github-script@v7.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |