Skip to content

Commit 68b869b

Browse files
Pin dependencies
1 parent b54dd5c commit 68b869b

7 files changed

+27
-27
lines changed

Diff for: .github/workflows/build-backend-on-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
if: ((github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) || github.event_name == 'push') && github.repository_owner == 'Altinn' && github.actor != 'dependabot[bot]'
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2525
name: "Checkout Repository"
26-
- uses: actions/setup-dotnet@v4
26+
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
2727
name: Install .NET ${{ env.dotnet_version }}
2828
with:
2929
dotnet-version: ${{ env.dotnet_version }}

Diff for: .github/workflows/build-deploy-at.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2222

2323
- name: Setup .NET
24-
uses: actions/setup-dotnet@v4
24+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
2525
with:
2626
dotnet-version: ${{ env.DOTNET_VERSION}}
2727

2828
- name: Login to Github Container Registry
29-
uses: docker/login-action@v3
29+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
3030
with:
3131
registry: ghcr.io
3232
username: ${{ github.actor }}
3333
password: ${{ secrets.GITHUB_TOKEN }}
3434

3535
- name: Build and Push to ghcr
36-
uses: docker/build-push-action@v6
36+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
3737
with:
3838
push: true
3939
tags: ghcr.io/altinn/altinn-authentication-frontend:${{ github.sha }}
@@ -58,10 +58,10 @@ jobs:
5858

5959
steps:
6060
- name: Checkout
61-
uses: actions/checkout@v4
61+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6262

6363
- name: Azure Login
64-
uses: azure/login@v2
64+
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2
6565
with:
6666
client-id: ${{ secrets.AZURE_CLIENT_ID }}
6767
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

Diff for: .github/workflows/build-frontend-on-pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Test & Build
1919
steps:
2020
- name: checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2222
with:
2323
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2424

@@ -30,7 +30,7 @@ jobs:
3030
run: yarn --immutable
3131

3232
- name: install node
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
3434
with:
3535
node-version: lts/*
3636

Diff for: .github/workflows/codeql.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ jobs:
5757
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5858
steps:
5959
- name: Checkout repository
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6161

6262
- name: Setup .NET 8.0.* SDK
63-
uses: actions/setup-dotnet@v4
63+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
6464
with:
6565
dotnet-version: |
6666
8.0.x
6767
9.0.x
6868
6969
# Initializes the CodeQL tools for scanning.
7070
- name: Initialize CodeQL
71-
uses: github/codeql-action/init@v3
71+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3
7272
with:
7373
languages: ${{ matrix.language }}
7474
build-mode: ${{ matrix.build-mode }}
@@ -96,6 +96,6 @@ jobs:
9696
exit 1
9797
9898
- name: Perform CodeQL Analysis
99-
uses: github/codeql-action/analyze@v3
99+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3
100100
with:
101101
category: "/language:${{matrix.language}}"

Diff for: .github/workflows/manual-build-deploy-to-environment.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2424

2525
- name: Setup .NET
26-
uses: actions/setup-dotnet@v4
26+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
2727
with:
2828
dotnet-version: ${{ env.DOTNET_VERSION }}
2929

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

3333
- name: Log in to the Container registry
34-
uses: docker/login-action@v3
34+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
3535
with:
3636
registry: ghcr.io
3737
username: ${{ github.actor }}
3838
password: ${{ secrets.GITHUB_TOKEN }}
3939

4040
- name: Build and push Docker image
41-
uses: docker/build-push-action@v6
41+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
4242
with:
4343
push: true
4444
tags: ghcr.io/altinn/altinn-authentication-frontend:${{ github.sha }}
@@ -59,10 +59,10 @@ jobs:
5959

6060
steps:
6161
- name: Checkout
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6363

6464
- name: Azure Login
65-
uses: azure/login@v2
65+
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2
6666
with:
6767
client-id: ${{ secrets.AZURE_CLIENT_ID }}
6868
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

Diff for: .github/workflows/template-test-playwright.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
name: "Playwright end to end Tests"
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2424
- name: Enable Corepack to use yarn version > 1
2525
run: corepack enable
26-
- uses: actions/setup-node@v4
26+
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
2727
with:
2828
node-version: lts/*
2929
- name: Install dependencies
@@ -46,7 +46,7 @@ jobs:
4646
"text": ":playwright: Frontend-tester feilet i testmiljø:`${{ inputs.environment }}` på repo: `${{ github.repository }}`. Mer detaljer her: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
4747
}' ${{ secrets.SLACK_WEBHOOK_URL }}
4848
49-
- uses: actions/upload-artifact@v4
49+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5050
if: failure()
5151
with:
5252
name: playwright-report-${{ inputs.environment }}-${{ github.run_id }}

Diff for: Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Building the Authentication Frontend
2-
FROM node:alpine AS generate-authentication-frontend
2+
FROM node:alpine@sha256:86703151a18fcd06258e013073508c4afea8e19cd7ed451554221dd00aea83fc AS generate-authentication-frontend
33
WORKDIR /build
44
COPY frontend .
55
RUN corepack enable
@@ -8,14 +8,14 @@ RUN yarn build
88

99
#Building the Authentication BFF Backend
1010

11-
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS generate-authentication-backend
11+
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine@sha256:33be1326b4a2602d08e145cf7e4a8db4b243db3cac3bdec42e91aef930656080 AS generate-authentication-backend
1212

1313
COPY bff/src .
1414
RUN dotnet publish Altinn.Authentication.UI/Altinn.Authentication.UI/Altinn.Authentication.UI.csproj -c Release -r linux-x64 -o /app_output --no-self-contained
1515

1616
#Building the final image
1717

18-
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
18+
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine@sha256:3fce6771d84422e2396c77267865df61174a3e503c049f1fe242224c012fde65 AS final
1919

2020
EXPOSE 8080/tcp
2121
#EXPOSE 443

0 commit comments

Comments
 (0)