Skip to content

Commit

Permalink
Merge branch 'main' into tcpdf-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdavis2001 authored Feb 6, 2025
2 parents 1674dff + 1c5ed00 commit 58dc2d0
Show file tree
Hide file tree
Showing 29 changed files with 159 additions and 96 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/analysis-trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ jobs:

- name: ecr login
id: login_ecr
uses: aws-actions/amazon-ecr-login@292c88581676a2a6d95f1312c0517f24577eca53 # [email protected]
uses: aws-actions/amazon-ecr-login@5987c53246a4cdb9fb822a0b17a98df3cdc62942 # [email protected]
with:
registries: 311462405659

- name: Run Trivy vulnerability scanner for Code
if: steps.filter.outputs.check == 'true'
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0
uses: aquasecurity/trivy-action@a11da62073708815958ea6d84f5650c78a3ef85b
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TRIVY_DB_REPOSITORY: ${{ steps.login_ecr.outputs.registry }}/trivy-db-public-ecr/aquasecurity/trivy-db:2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cypress_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
pip install -r scripts/pipeline/ci_ingress/requirements.txt
- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down Expand Up @@ -106,10 +106,11 @@ jobs:
- name: Upload Screenshot Artifact
if: failure()
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
uses: actions/upload-artifact@v4.6.0
with:
name: cypress-screenshots
path: cypress/screenshots/
overwrite: true

- name: Configure AWS Credentials
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/locust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
pip install -r scripts/pipeline/ci_ingress/requirements.txt
- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ jobs:
- name: Check coverage
run: php ../scripts/pipeline/php_coverage/check_coverage.php ./coverage-xml/index.xml ${{ matrix.scan.minCoverage }}
- name: Upload Coverage Artifacts
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
uses: actions/upload-artifact@v4.6.0
with:
name: coverage-html
path: ${{ matrix.scan.path }}/coverage-html/
overwrite: true
phpunit_all_services:
name: phpunit
runs-on: ubuntu-latest
Expand Down Expand Up @@ -104,7 +105,8 @@ jobs:
- name: Check coverage
run: php ../scripts/pipeline/php_coverage/check_coverage.php ./coverage-xml/index.xml ${{ matrix.scan.minCoverage }}
- name: Upload Coverage Artifacts
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
uses: actions/upload-artifact@v4.6.0
with:
name: coverage-html
path: ${{ matrix.scan.path }}/coverage-html/
overwrite: true
2 changes: 1 addition & 1 deletion .github/workflows/workflow_destroy_on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
steps:
- name: Set safe branch name
id: safe_branch_name
uses: ministryofjustice/opg-github-actions/.github/actions/[email protected].0
uses: ministryofjustice/opg-github-actions/.github/actions/[email protected].1
if: github.event.pull_request.merged == true

cleanup_workspace:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/workflow_path_to_live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
name: TF Preproduction - Account
needs:
- set_variables
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
with:
terraform_version: ${{ needs.set_variables.outputs.account_terraform_version }}
terraform_workspace: preproduction
Expand All @@ -105,7 +105,7 @@ jobs:

terraform_region_preproduction:
name: TF Preproduction - Region
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- set_variables
with:
Expand All @@ -123,7 +123,7 @@ jobs:

terraform_environment_preproduction:
name: TF Preproduction - Environment
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
with:
terraform_version: ${{ needs.set_variables.outputs.environment_terraform_version }}
terraform_workspace: preproduction
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down Expand Up @@ -323,7 +323,7 @@ jobs:

terraform_account_production:
name: TF Production - Account
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- slack_msg_production_deploy_begin
- set_variables
Expand All @@ -342,7 +342,7 @@ jobs:

terraform_region_production:
name: TF Production - Region
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- slack_msg_production_deploy_begin
- set_variables
Expand All @@ -361,7 +361,7 @@ jobs:

terraform_environment_production:
name: TF Production - Environment
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
with:
terraform_version: ${{ needs.set_variables.outputs.environment_terraform_version }}
terraform_workspace: production
Expand Down Expand Up @@ -395,7 +395,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/workflow_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
steps:
- name: Set safe branch name
id: safe_branch_name
uses: ministryofjustice/opg-github-actions/.github/actions/[email protected].0
uses: ministryofjustice/opg-github-actions/.github/actions/[email protected].1

- name: Set workspace name
id: set_workspace_name
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
name: TF - Lint
needs:
- workflow_variables
uses: ministryofjustice/opg-github-workflows/.github/workflows/linting-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/linting-infrastructure-terraform.yml@v3.6.0
with:
terraform_version: ${{ needs.workflow_variables.outputs.environment_terraform_version }}

Expand All @@ -97,7 +97,7 @@ jobs:

terraform_account_development:
name: TF Development - Account
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- terraform_lint
- workflow_variables
Expand All @@ -118,7 +118,7 @@ jobs:

terraform_region_development:
name: TF Development - Region
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- terraform_lint
- workflow_variables
Expand All @@ -139,7 +139,7 @@ jobs:

terraform_email_development:
name: TF Development - Email
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- terraform_lint
- workflow_variables
Expand All @@ -160,7 +160,7 @@ jobs:

terraform_environment_development:
name: TF Development - Environment
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- docker_build_scan_push
- phpunit_tests
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:

terraform_account_preproduction:
name: TF Preproduction Plan - Account
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- workflow_variables
- terraform_lint
Expand All @@ -209,7 +209,7 @@ jobs:

terraform_region_preproduction:
name: TF Preproduction Plan - Region
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- workflow_variables
- terraform_lint
Expand All @@ -230,7 +230,7 @@ jobs:

terraform_environment_preproduction:
name: TF Preproduction Plan - Environment
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- workflow_variables
- terraform_lint
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow_start_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/workflow_weekly_refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:

terraform_account_production:
name: TF Production - Account
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- slack_msg_production_deploy_begin
- set_variables
Expand All @@ -146,7 +146,7 @@ jobs:

terraform_region_production:
name: TF Production - Region
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- slack_msg_production_deploy_begin
- set_variables
Expand All @@ -165,7 +165,7 @@ jobs:

terraform_environment_production:
name: TF Production - Environment
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.1.0
uses: ministryofjustice/opg-github-workflows/.github/workflows/build-infrastructure-terraform.yml@v3.6.0
needs:
- docker_build_scan_push
- slack_msg_production_deploy_begin
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Download Terraform Task definition
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # tag=v3.0.2
uses: actions/download-artifact@v4.1.8
with:
name: terraform-artifact
path: /tmp/
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ run-front-composer:

.PHONY: run-pdf-composer
run-pdf-composer:
@docker run --rm -v `pwd`/service-pdf/:/app/ composer:${COMPOSER_VERSION} composer install --prefer-dist --no-interaction --no-scripts --ignore-platform-reqs
@docker run --rm -v `pwd`/service-pdf/:/app/ composer:${COMPOSER_VERSION} composer update tecnickcom/tcpdf --prefer-dist --no-interaction --no-scripts --ignore-platform-reqs

.PHONY: run-api-composer
run-api-composer:
@docker run --rm -v `pwd`/service-api/:/app/ composer:${COMPOSER_VERSION} composer install --prefer-dist --no-interaction --no-scripts --ignore-platform-reqs

.PHONY: run-admin-composer
run-admin-composer:
@docker run --rm -v `pwd`/service-admin/:/app/ composer:${COMPOSER_VERSION} composer install --prefer-dist --no-interaction --no-scripts --ignore-platform-reqs
@docker run --rm -v `pwd`/service-admin/:/app/ composer:${COMPOSER_VERSION} composer update tecnickcom/tcpdf --prefer-dist --no-interaction --no-scripts --ignore-platform-reqs

.PHONY: run-shared-composer
run-shared-composer:
Expand Down
30 changes: 15 additions & 15 deletions aurora-scheduler/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ module descheduler

go 1.21

toolchain go1.23.5
toolchain go1.23.6

require (
github.com/aws/aws-lambda-go v1.47.0
github.com/aws/aws-sdk-go-v2/config v1.29.1
github.com/aws/aws-sdk-go-v2/service/rds v1.93.7
github.com/aws/aws-sdk-go-v2/config v1.29.5
github.com/aws/aws-sdk-go-v2/service/rds v1.93.11
)

require (
github.com/aws/aws-sdk-go v1.44.130 // indirect
github.com/aws/aws-sdk-go-v2 v1.33.0 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.54 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.24 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.28 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.28 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.9 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.24.11 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.10 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.33.9 // indirect
github.com/aws/smithy-go v1.22.1 // indirect
github.com/aws/aws-sdk-go-v2 v1.36.0 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.58 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.27 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.31 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.31 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.12 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.24.14 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.13 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.33.13 // indirect
github.com/aws/smithy-go v1.22.2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
)
Loading

0 comments on commit 58dc2d0

Please sign in to comment.