diff --git a/.github/workflows/comment-evolution-plot.yml b/.github/workflows/comment-evolution-plot.yml index 1f996ee9c..a0e3ea6f4 100644 --- a/.github/workflows/comment-evolution-plot.yml +++ b/.github/workflows/comment-evolution-plot.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Download evolution plot artifact from triggering run - uses: actions/github-script@v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | const fs = require('fs'); diff --git a/.github/workflows/compas-compile-ci.yml b/.github/workflows/compas-compile-ci.yml index e11255923..8dcab67c5 100644 --- a/.github/workflows/compas-compile-ci.yml +++ b/.github/workflows/compas-compile-ci.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Build COMPAS from source run: | @@ -87,7 +87,7 @@ jobs: echo "All tests completed successfully!" - name: Archive code coverage results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: code-coverage path: | @@ -96,7 +96,7 @@ jobs: - name: Archive COMPAS detailed-evolution plot id: upload - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: evolution-plot-${{ github.run_number }} path: ${{ env.ARTIFACT_PATH }}/${{ env.ARTIFACT_NAME }} diff --git a/.github/workflows/dockerhub-ci.yml b/.github/workflows/dockerhub-ci.yml index e441367fc..cf5e637a6 100755 --- a/.github/workflows/dockerhub-ci.yml +++ b/.github/workflows/dockerhub-ci.yml @@ -20,16 +20,16 @@ jobs: name: Build Docker image and push to DockerHub runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Log in to Dockerhub - uses: docker/login-action@v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: registry: ghcr.io username: ${{ github.actor }} @@ -47,10 +47,10 @@ jobs: echo "Lowercase repo: $REPO_LC" - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Build and push Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: . push: true diff --git a/.github/workflows/native-linux-bundle.yml b/.github/workflows/native-linux-bundle.yml index 564731330..f650bb30b 100644 --- a/.github/workflows/native-linux-bundle.yml +++ b/.github/workflows/native-linux-bundle.yml @@ -35,10 +35,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Restore compiler cache - uses: actions/cache@v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-native-linux-bundle-ccache-${{ hashFiles('src/Makefile', 'misc/cicd-scripts/linux-dependencies', '.github/workflows/native-linux-bundle.yml') }}-${{ github.sha }} @@ -111,7 +111,7 @@ jobs: tar -C dist -czf "$BUNDLE_TARBALL" COMPAS-linux-x86_64 - name: Upload bundle artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: COMPAS-linux-x86_64 path: ${{ env.BUNDLE_TARBALL }} @@ -124,15 +124,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.11' - name: Download bundle artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: COMPAS-linux-x86_64 path: downloaded-artifact diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 5c6f5a72f..53385498f 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -31,15 +31,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.11' - name: Build Linux wheel with cibuildwheel - uses: pypa/cibuildwheel@v3.1.2 + uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1 env: CIBW_BUILD: cp311-manylinux_x86_64 CIBW_ARCHS_LINUX: x86_64 @@ -62,7 +62,7 @@ jobs: test -d "$WHEEL_SMOKE_DIR" - name: Upload wheel artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: compas-popsynth-wheel-linux path: wheelhouse/*.whl @@ -74,15 +74,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.11' - name: Build macOS arm64 wheel with cibuildwheel - uses: pypa/cibuildwheel@v3.1.2 + uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1 env: CIBW_BUILD: cp311-macosx_arm64 CIBW_ARCHS_MACOS: arm64 @@ -105,7 +105,7 @@ jobs: test -d "$WHEEL_SMOKE_DIR" - name: Upload wheel artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: compas-popsynth-wheel-macos-arm64 path: wheelhouse/*.whl @@ -117,15 +117,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.11' - name: Build macOS x86_64 wheel with cibuildwheel - uses: pypa/cibuildwheel@v3.1.2 + uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1 env: CIBW_BUILD: cp311-macosx_x86_64 CIBW_ARCHS_MACOS: x86_64 @@ -148,7 +148,7 @@ jobs: test -d "$WHEEL_SMOKE_DIR" - name: Upload wheel artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: compas-popsynth-wheel-macos-x86_64 path: wheelhouse/*.whl @@ -168,25 +168,25 @@ jobs: steps: - name: Download Linux wheel artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: compas-popsynth-wheel-linux path: dist - name: Download macOS arm64 wheel artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: compas-popsynth-wheel-macos-arm64 path: dist - name: Download macOS x86_64 wheel artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: compas-popsynth-wheel-macos-x86_64 path: dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 with: packages-dir: dist/ verbose: true diff --git a/.github/workflows/tag_creation.yml b/.github/workflows/tag_creation.yml index b731be0ea..6b4e62e80 100644 --- a/.github/workflows/tag_creation.yml +++ b/.github/workflows/tag_creation.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # Ensures full git history is available @@ -49,7 +49,7 @@ jobs: - name: Create GitHub Release if: steps.file_check.outputs.changed == 'true' - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 with: tag_name: v${{ env.version }} name: Release v${{ env.version }}