-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2259 from ministryofjustice/renovate-github-actions
Renovate update Github Actions
- Loading branch information
Showing
11 changed files
with
50 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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@21a7588699d87a47d51abd55e077cb0fcf66fe7c # [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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ | ||
|
@@ -104,12 +104,13 @@ jobs: | |
npm install . | ||
./cypress/cypress_start.sh | ||
- name: Upload Screenshot Artifact | ||
if: failure() | ||
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1 | ||
with: | ||
name: cypress-screenshots | ||
path: cypress/screenshots/ | ||
# Note - V 3 of upload-artifact is deprecated but V 4 disallows uploading artifact of the same name. Commented for now but needs rework | ||
#- name: Upload Screenshot Artifact | ||
# if: failure() | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: cypress-screenshots | ||
# path: cypress/screenshots/ | ||
|
||
- name: Configure AWS Credentials | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,11 +57,12 @@ jobs: | |
run: XDEBUG_MODE=coverage php ./vendor/bin/phpunit --coverage-html ./coverage-html --coverage-xml ./coverage-xml | ||
- 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 | ||
with: | ||
name: coverage-html | ||
path: ${{ matrix.scan.path }}/coverage-html/ | ||
# Note - V 3 of upload-artifact is deprecated but V 4 disallows uploading artifact of the same name. Commented for now but needs rework | ||
#- name: Upload Coverage Artifacts | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: coverage-html | ||
# path: ${{ matrix.scan.path }}/coverage-html/ | ||
phpunit_all_services: | ||
name: phpunit | ||
runs-on: ubuntu-latest | ||
|
@@ -103,8 +104,9 @@ jobs: | |
run: XDEBUG_MODE=coverage php ./vendor/bin/phpunit --coverage-html ./coverage-html --coverage-xml ./coverage-xml | ||
- 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 | ||
with: | ||
name: coverage-html | ||
path: ${{ matrix.scan.path }}/coverage-html/ | ||
# Note - V 3 of upload-artifact is deprecated but V 4 disallows uploading artifact of the same name. Commented for now but needs rework | ||
#- name: Upload Coverage Artifacts | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: coverage-html | ||
# path: ${{ matrix.scan.path }}/coverage-html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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.5.0 | ||
with: | ||
terraform_version: ${{ needs.workflow_variables.outputs.environment_terraform_version }} | ||
|
||
|
@@ -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.5.0 | ||
needs: | ||
- terraform_lint | ||
- workflow_variables | ||
|
@@ -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.5.0 | ||
needs: | ||
- terraform_lint | ||
- workflow_variables | ||
|
@@ -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.5.0 | ||
needs: | ||
- terraform_lint | ||
- workflow_variables | ||
|
@@ -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.5.0 | ||
needs: | ||
- docker_build_scan_push | ||
- phpunit_tests | ||
|
@@ -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.5.0 | ||
needs: | ||
- workflow_variables | ||
- terraform_lint | ||
|
@@ -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.5.0 | ||
needs: | ||
- workflow_variables | ||
- terraform_lint | ||
|
@@ -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.5.0 | ||
needs: | ||
- workflow_variables | ||
- terraform_lint | ||
|
@@ -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/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.