Skip to content

Commit c42192e

Browse files
authored
Merge branch 'github-aws-runners:main' into main
2 parents 32bacf4 + 67fadae commit c42192e

File tree

336 files changed

+13480
-9334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+13480
-9334
lines changed

.ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#syntax=docker/dockerfile:1.2
2-
FROM node:20 as build
2+
FROM node@sha256:0c0734eb7051babbb3e95cd74e684f940552b31472152edf0bb23e54ab44a0d7 as build
33
WORKDIR /lambdas
44
RUN apt-get update \
55
&& apt-get install -y zip \

.ci/terraform-init-all.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# required to run tflint via pre-commit
55

66
# only run the script if a uniique pid file exits if not creat it or --force flag is passed
7-
pid="/tmp/philips-labs-terraform-aws-github-runner.pid"
7+
pid="/tmp/github-aws-runners-terraform-aws-github-runner.pid"
88
if [ "$1" == "--force" ]; then
9-
rm -f /tmp/philips-labs-terraform-aws-github-runner.pid
9+
rm -f /tmp/github-aws-runners-terraform-aws-github-runner.pid
1010
fi
1111

1212
if [ ! -f $pid ]; then

.devcontainer/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
ARG VARIANT="20-bullseye"
2-
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
1+
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node@sha256:acdce1045a2ddce4c66846d5cd09adf746d157fce9233124e4925b647f192b2e

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
"dbaeumer.vscode-eslint",
1717
"editorconfig.editorconfig",
1818
"esbenp.prettier-vscode",
19-
"firsttris.vscode-jest-runner",
2019
"hashicorp.hcl",
2120
"hashicorp.terraform",
2221
"hashicorp.terraform",
23-
"orta.vscode-jest",
22+
"vitest.explorer",
2423
"yzhang.markdown-all-in-one"
2524
]
2625
}

.github/dependabot.yml

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ updates:
1515
directory: "/"
1616
schedule:
1717
interval: "weekly"
18+
groups:
19+
github:
20+
patterns:
21+
- "actions/*"
22+
- "github/"
1823

1924
- package-ecosystem: "npm"
2025
directory: "/lambdas"
@@ -30,14 +35,53 @@ updates:
3035
aws-powertools:
3136
patterns:
3237
- "@aws-lambda-powertools/*"
38+
nx:
39+
patterns:
40+
- "@nx/*"
41+
- "nx/*"
42+
eslint:
43+
patterns:
44+
- "eslint*"
45+
- "@typescript-eslint-*"
46+
vite:
47+
patterns:
48+
- "vite*"
49+
- "@vite/*"
3350

34-
ignore:
35-
- dependency-name: "@middy/core"
36-
update-types: ["version-update:semver-major"]
37-
- dependency-name: "@octokit/*"
38-
update-types: ["version-update:semver-major"]
39-
- dependency-name: "eslint"
40-
update-types: ["version-update:semver-major"]
4151
commit-message:
4252
prefix: "fix(lambda)"
4353
prefix-development: "chore(lambda)"
54+
55+
- package-ecosystem: "docker"
56+
directory: "/.ci/Dockerfile"
57+
schedule:
58+
interval: "weekly"
59+
labels:
60+
- "dependencies"
61+
- "docker"
62+
commit-message:
63+
prefix: "chore(docker)"
64+
65+
- package-ecosystem: "docker"
66+
directory: "/.devcontainer/Dockerfile"
67+
schedule:
68+
interval: "weekly"
69+
labels:
70+
- "dependencies"
71+
- "docker"
72+
commit-message:
73+
prefix: "chore(devcontainer)"
74+
75+
- package-ecosystem: "pip"
76+
directory: "/.github/workflows/mkdocs"
77+
schedule:
78+
interval: "weekly"
79+
groups:
80+
python-deps:
81+
patterns:
82+
- "*"
83+
labels:
84+
- "dependencies"
85+
- "python"
86+
commit-message:
87+
prefix: "chore(docs)"

.github/workflows/codeql.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "main", "develop", "v1" ]
6+
pull_request:
7+
branches: [ "main", "develop", "v1" ]
8+
paths-ignore:
9+
- '**/*.md'
10+
schedule:
11+
- cron: '25 19 * * 2'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
analyze:
18+
name: Analyze (${{ matrix.language }})
19+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
20+
permissions:
21+
security-events: write # required for CodeQL to upload security scan results
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language: ['javascript-typescript', 'actions']
27+
28+
steps:
29+
- name: Harden the runner (Audit all outbound calls)
30+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
31+
with:
32+
egress-policy: audit
33+
34+
- name: Checkout repository
35+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
with:
37+
persist-credentials: false
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
42+
with:
43+
languages: ${{ matrix.language }}
44+
build-mode: none
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
48+
with:
49+
category: "/language:${{matrix.language}}"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: 'Dependency Review'
10+
on: [pull_request]
11+
12+
permissions: {}
13+
14+
jobs:
15+
dependency-review:
16+
name: Dependency vulnerability scan
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read # for actions/checkout
20+
pull-requests: write # for actions/dependency-review-action to comment on PRs
21+
steps:
22+
- name: Harden the runner (Audit all outbound calls)
23+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
24+
with:
25+
egress-policy: audit
26+
27+
- name: 'Checkout Repository'
28+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
with:
30+
persist-credentials: false
31+
- name: 'Dependency Review'
32+
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1
33+
with:
34+
comment-summary-in-pr: always

.github/workflows/lambda.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
name: Build lambdas
2+
23
on:
34
pull_request:
45
branches:
56
- main
67
paths:
78
- 'lambdas/**'
9+
- '.github/workflows/lambda.yml'
10+
11+
permissions:
12+
contents: read
813

914
jobs:
1015
build:
16+
name: Build and test lambda functions
1117
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node: [20]
1518
container:
16-
image: node:${{ matrix.node }}
19+
image: node:22@sha256:2bb201f33898d2c0ce638505b426f4dd038cc00e5b2b4cbba17b069f0fff1496
1720
defaults:
1821
run:
1922
working-directory: ./lambdas
2023

2124
steps:
22-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
25+
- name: Harden the runner (Audit all outbound calls)
26+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
27+
with:
28+
egress-policy: audit
29+
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
with:
32+
persist-credentials: false
2333
- name: Install dependencies
2434
run: yarn install --frozen-lockfile
2535
- name: Run prettier
@@ -32,7 +42,7 @@ jobs:
3242
- name: Build distribution
3343
run: yarn build
3444
- name: Upload coverage report
35-
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
45+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3646
if: ${{ failure() }}
3747
with:
3848
name: coverage-reports
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mkdocs-material==9.6.21

0 commit comments

Comments
 (0)