Skip to content

Commit

Permalink
chore(deps): pin dependencies (#702)
Browse files Browse the repository at this point in the history
Co-authored-by: descope[bot] <107609351+descope[bot]@users.noreply.github.com>
  • Loading branch information
descope[bot] authored Jan 27, 2025
1 parent 007037e commit 9cc4477
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
cache: 'yarn'
node-version-file: .nvmrc
Expand All @@ -36,8 +36,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
cache: 'yarn'
node-version-file: .nvmrc
Expand All @@ -60,8 +60,8 @@ jobs:
checks: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
cache: 'yarn'
node-version-file: .nvmrc
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Testing
run: yarn run test
- name: Coverage check
uses: devmasx/[email protected]
uses: devmasx/coverage-check-action@4a754f8957c6824e0a0d44bf9168fdbdf47e7e2f # v1.2.0
with:
type: lcov
min_coverage: 77
Expand All @@ -85,8 +85,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
cache: 'yarn'
node-version-file: .nvmrc
Expand Down Expand Up @@ -116,12 +116,12 @@ jobs:
IMAGE_NAME: auth-hosting
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Create docker ignore
run: |
cp .gitignore .dockerignore
- name: Login to GHCR
uses: docker/login-action@v3
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -134,7 +134,7 @@ jobs:
role-session-name: ${{ env.IMAGE_NAME }}-${{ github.run_number }}@${{ github.run_attempt }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2
- name: Extract metadata for the Docker image
id: meta
uses: descope/.github/.github/actions/docker/metadata@main
Expand All @@ -143,9 +143,9 @@ jobs:
ghcr.io/descope/${{ env.IMAGE_NAME }}
${{ steps.login-ecr.outputs.registry }}/descope/${{ env.IMAGE_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
platforms: linux/amd64
context: .
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax=docker/dockerfile:1
# syntax=docker/dockerfile:1@sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25
ARG NODE_VERSION=18

FROM node:${NODE_VERSION}-alpine as builder
Expand All @@ -14,7 +14,7 @@ ARG REACT_APP_CONTENT_BASE_URL=""
ARG REACT_APP_USE_ORIGIN_BASE_URL="true"
RUN yarn build

FROM nginx:alpine
FROM nginx:alpine@sha256:814a8e88df978ade80e584cc5b333144b9372a8e3c98872d07137dbf3b44d0e4

RUN apk add openssl && \
openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=mydomain.com" -addext "subjectAltName=DNS:mydomain.com" -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt;
Expand Down

0 comments on commit 9cc4477

Please sign in to comment.