Skip to content

Pin dependencies #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
image-name: ${{ steps.var.outputs.image-name }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- id: var
run: |
Expand All @@ -46,7 +46,7 @@ jobs:
needs: [ set-env ]
steps:
- name: Validate Packages
uses: DFE-Digital/rsd-github-actions/.github/actions/validate-packages@v1.1.2
uses: DFE-Digital/rsd-github-actions/.github/actions/validate-packages@9a7a6a7c9aa5914f76a1f34aee8dd2dcc00702bc # v1.1.2
with:
environment: ${{ needs.set-env.outputs.environment }}

Expand All @@ -55,7 +55,7 @@ jobs:
needs: [ set-env, validate-packages ]
permissions:
packages: write
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/build.yml@v4.1.0
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/build.yml@2669c85cf877ce3161b7d0edf36690106412c70b # v4.1.0
strategy:
matrix:
stage: [
Expand All @@ -81,7 +81,7 @@ jobs:
needs: [ set-env, build ]
permissions:
id-token: write
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/import.yml@v4.1.0
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/import.yml@2669c85cf877ce3161b7d0edf36690106412c70b # v4.1.0
strategy:
matrix:
stage: [
Expand All @@ -108,7 +108,7 @@ jobs:
needs: [ set-env, import ]
permissions:
id-token: write
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/deploy.yml@v4.1.0
uses: DFE-Digital/deploy-azure-container-apps-action/.github/workflows/deploy.yml@2669c85cf877ce3161b7d0edf36690106412c70b # v4.1.0
with:
environment: ${{ needs.set-env.outputs.environment }}
docker-image-name: ${{ needs.set-env.outputs.image-name }}
Expand All @@ -126,7 +126,7 @@ jobs:
needs: [ set-env, deploy ]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.ref }}

Expand All @@ -136,7 +136,7 @@ jobs:
git push origin ${{ needs.set-env.outputs.release }}

- name: Create release
uses: "actions/github-script@v7"
uses: "actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea" # v7
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
Expand All @@ -155,7 +155,7 @@ jobs:
}

- name: Trigger Build and Push NuGet Package workflow
uses: "actions/github-script@v7"
uses: "actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea" # v7
if: needs.set-env.outputs.environment == 'production'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:

steps:
- name: Check Out Tag
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.inputs.tag_name }}
fetch-depth: 0 # Ensure full history and tags are available

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/continuous-integration-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
packages: read
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.ref }}
fetch-depth: 0 # Shallow clones disabled for a better relevancy of SC analysis

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -37,18 +37,18 @@ jobs:
docker compose -f "docker-compose.yml" up -d --build db

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Setup JDK
uses: actions/setup-java@v4
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
with:
distribution: 'microsoft'
java-version: ${{ env.JAVA_VERSION }}

- name: Cache SonarCloud packages
uses: actions/cache@v4
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
working-directory: CypressTests
steps:
- name: checkout code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: lint cypress tests
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/continuous-integration-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Check for terraform version mismatch
run: |
Expand All @@ -28,7 +28,7 @@ jobs:
fi

- name: Validate Terraform docs
uses: terraform-docs/gh-actions@v1.3.0
uses: terraform-docs/gh-actions@aeae0038ed47a547e0c0fca5c059d3335f48fb25 # v1.3.0
with:
working-dir: terraform
config-file: .terraform-docs.yml
Expand All @@ -40,25 +40,25 @@ jobs:
run: rm ./terraform/backend.tf

- name: Run a Terraform init
uses: docker://hashicorp/terraform:1.9.8
uses: docker://hashicorp/terraform:1.9.8@sha256:18f9986038bbaf02cf49db9c09261c778161c51dcc7fb7e355ae8938459428cd
with:
entrypoint: terraform
args: -chdir=terraform init

- name: Run a Terraform validate
uses: docker://hashicorp/terraform:1.9.8
uses: docker://hashicorp/terraform:1.9.8@sha256:18f9986038bbaf02cf49db9c09261c778161c51dcc7fb7e355ae8938459428cd
with:
entrypoint: terraform
args: -chdir=terraform validate

- name: Run a Terraform format check
uses: docker://hashicorp/terraform:1.9.8
uses: docker://hashicorp/terraform:1.9.8@sha256:18f9986038bbaf02cf49db9c09261c778161c51dcc7fb7e355ae8938459428cd
with:
entrypoint: terraform
args: -chdir=terraform fmt -check=true -diff=true

- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
uses: terraform-linters/setup-tflint@90f302c255ef959cbfb4bd10581afecdb7ece3e6 # v4
with:
tflint_version: v0.44.1

Expand All @@ -67,6 +67,6 @@ jobs:
run: tflint -f compact

- name: Run TFSec
uses: aquasecurity/tfsec-pr-commenter-action@v1.3.1
uses: aquasecurity/tfsec-pr-commenter-action@7a44c5dcde5dfab737363e391800629e27b6376b # v1.3.1
with:
github_token: ${{ github.token }}
8 changes: 4 additions & 4 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
"edge"
]
container:
image: cypress/browsers:22.14.0
image: cypress/browsers:22.14.0@sha256:5fedacf2c6b1fab4f2d2d24a1cb2054af6d0103e0b163cd5064e523f45ca1a88
defaults:
run:
working-directory: CypressTests/
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.ref }}

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

- name: Upload screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: screenshots-${{ inputs.environment }}-${{ matrix.browser }}
path: screenshots
Expand All @@ -67,7 +67,7 @@ jobs:

- name: Upload report
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: reports-${{ inputs.environment }}-${{ matrix.browser }}
path: CypressTests/cypress/reports/mocha
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
]
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3

- name: Build docker image
uses: docker/build-push-action@v6
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6
with:
build-args: CI=true
file: './${{ matrix.image }}'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
]
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3

- name: Build docker image
uses: docker/build-push-action@v6
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6
id: build
with:
file: './${{ matrix.image }}'
Expand All @@ -42,7 +42,7 @@ jobs:
run: docker save -o ${{ matrix.image }}-${{ matrix.stage }}.tar ${{ steps.build.outputs.imageid }}

- name: Scan Docker image for CVEs
uses: aquasecurity/trivy-action@0.30.0
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # 0.30.0
with:
input: ${{ matrix.image }}-${{ matrix.stage }}.tar
format: 'sarif'
Expand All @@ -53,7 +53,7 @@ jobs:
github-pat: ${{ secrets.GITHUB_TOKEN }}

- name: Upload scan results to GitHub Security
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3
if: always()
with:
sarif_file: 'trivy-results.sarif'
6 changes: 3 additions & 3 deletions .github/workflows/performance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
working-directory: Dfe.Academies.Performance/scripts
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Run k6 test
uses: grafana/k6-action@v0.3.1
uses: grafana/k6-action@e4714b734f2b0afaabeb7b4a69142745548ab9ec # v0.3.1
with:
filename: suite.js
env:
Expand All @@ -29,7 +29,7 @@ jobs:

- name: Upload report
if: ${{ success() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: summary
path: summary.html
10 changes: 5 additions & 5 deletions .github/workflows/security-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
working-directory: CypressTests
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Create directory on runner
run: |
Expand All @@ -33,7 +33,7 @@ jobs:

- name: Restore ZAP container from cache if exists
id: cache-docker-zap
uses: actions/cache@v4
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ~/ci/cache/docker/softwaresecurityproject
key: cache-docker-zap-${{ env.ZAP_VERSION }}
Expand All @@ -52,7 +52,7 @@ jobs:
run: docker run --name zap_container --rm -d -v ${{ github.workspace }}/zapoutput/:/zap/wrk:rw -u zap -p ${{ env.ZAP_PORT }}:${{ env.ZAP_PORT }} -i softwaresecurityproject/zap-stable zap.sh -daemon -port ${{ env.ZAP_PORT }} -host 0.0.0.0 -config api.key=${{ secrets.ZAP_API_KEY }} -config api.addrs.addr.name=.* -config api.addrs.addr.regex=true -config network.localServers.mainProxy.alpn.enabled=false -config network.localServers.mainProxy.address=0.0.0.0

- name: Set up NodeJS
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 18

Expand All @@ -79,13 +79,13 @@ jobs:

- name: Azure login with SPN
if: '!cancelled()'
uses: azure/login@v2
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2
with:
creds: ${{ secrets.OWASP_AZ_CREDENTIALS }}

- name: Push report to blob storage
if: '!cancelled()'
uses: azure/CLI@v2
uses: azure/CLI@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # v2
id: azure
with:
azcliversion: 2.49.0
Expand Down
Loading
Loading