diff --git a/.github/workflows/deploy-backend.yml b/.github/workflows/deploy-backend.yml index 0a67128..5d5000d 100644 --- a/.github/workflows/deploy-backend.yml +++ b/.github/workflows/deploy-backend.yml @@ -88,19 +88,19 @@ jobs: image_ref: ${{ steps.ref.outputs.image_ref }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 # driver: docker-container explicitly, not the ambient default -- # this runner's default buildx context reports driver "docker", # which does not support cache export (cache-to: type=gha below # fails outright without this). - name: Set up Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 with: driver: docker-container - name: Log in to GHCR - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -108,7 +108,7 @@ jobs: - name: Build and push id: build - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . push: true @@ -202,7 +202,7 @@ jobs: packages: read steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Write GHCR token file run: printf '%s' "${{ secrets.GITHUB_TOKEN }}" > .ghcr_token @@ -213,7 +213,7 @@ jobs: # scope here. Shipping the file directly keeps this pipeline # self-contained. - name: Ship deploy files to host - uses: appleboy/scp-action@v0.1.7 + uses: appleboy/scp-action@v1.0.0 with: host: ${{ vars.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} @@ -222,7 +222,7 @@ jobs: target: ${{ env.DEPLOY_PATH }} - name: Deploy - uses: appleboy/ssh-action@v1.0.3 + uses: appleboy/ssh-action@v1.2.5 with: host: ${{ vars.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} @@ -295,13 +295,13 @@ jobs: packages: read steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Write GHCR token file run: printf '%s' "${{ secrets.GITHUB_TOKEN }}" > .ghcr_token - name: Ship rollback files to host - uses: appleboy/scp-action@v0.1.7 + uses: appleboy/scp-action@v1.0.0 with: host: ${{ vars.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} @@ -310,7 +310,7 @@ jobs: target: ${{ env.DEPLOY_PATH }} - name: Restore previous image - uses: appleboy/ssh-action@v1.0.3 + uses: appleboy/ssh-action@v1.2.5 with: host: ${{ vars.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} @@ -338,10 +338,10 @@ jobs: timeout-minutes: 10 steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Ship finalize script to host - uses: appleboy/scp-action@v0.1.7 + uses: appleboy/scp-action@v1.0.0 with: host: ${{ vars.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} @@ -350,7 +350,7 @@ jobs: target: ${{ env.DEPLOY_PATH }} - name: Prune to current + previous image - uses: appleboy/ssh-action@v1.0.3 + uses: appleboy/ssh-action@v1.2.5 with: host: ${{ vars.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }} diff --git a/.github/workflows/deploy-to-ecs.yml b/.github/workflows/deploy-to-ecs.yml index f3573b9..1e67aa3 100644 --- a/.github/workflows/deploy-to-ecs.yml +++ b/.github/workflows/deploy-to-ecs.yml @@ -30,10 +30,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v6 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -66,10 +66,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v6 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -77,7 +77,7 @@ jobs: - name: Login to Amazon ECR id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 + uses: aws-actions/amazon-ecr-login@v2 - name: Build, tag, and push image to Amazon ECR id: build-image @@ -173,7 +173,7 @@ jobs: steps: - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v6 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -209,10 +209,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v6 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -227,7 +227,7 @@ jobs: cat aws/current-otel-task-definition.json - name: Deploy OpenTelemetry ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + uses: aws-actions/amazon-ecs-deploy-task-definition@v2 with: task-definition: aws/current-otel-task-definition.json service: ${{ secrets.ECS_OTEL_SERVICE }} diff --git a/.github/workflows/publish-sdk.yml b/.github/workflows/publish-sdk.yml index 987545c..d58fb10 100644 --- a/.github/workflows/publish-sdk.yml +++ b/.github/workflows/publish-sdk.yml @@ -20,13 +20,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: fetch-depth: 0 ref: ${{ github.ref }} - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v7 with: python-version: '3.11' diff --git a/.github/workflows/sdk-tests.yml b/.github/workflows/sdk-tests.yml index 672eec4..c6ce98e 100644 --- a/.github/workflows/sdk-tests.yml +++ b/.github/workflows/sdk-tests.yml @@ -14,10 +14,10 @@ jobs: python-version: ["3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} @@ -35,7 +35,7 @@ jobs: pytest tests/test_auth.py tests/test_base.py tests/test_client.py tests/test_datasets.py tests/test_aimodels.py tests/test_usecases.py tests/test_exceptions.py -v -p no:django -o addopts= --override-ini=django_find_project=false --noconftest --cov=dataspace_sdk --cov-report=term-missing --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v7 with: file: ./coverage.xml flags: unittests