-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.projenrc.ts
36 lines (31 loc) · 1.43 KB
/
.projenrc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { CdktfAwsCdkProject } from "./projenrc";
const githubActionPinnedVersions = {
"actions/checkout": "11bd71901bbe5b1630ceea73d27597364c9af683", // v4.2.2
"actions/download-artifact": "fa0a91b85d4f404e444e00e005971372dc801d16", // v4.1.8
"actions/github-script": "60a0d83039c74a4aee543508d2ffcb1c3799cdea", // v7.0.1
"actions/setup-node": "39370e3970a6d050c480ffad4ff0ed4d3fdee5af", // v4.1.0
"actions/stale": "28ca1036281a5e5922ead5184a1bbf96e5fc984e", // v9.0.0
"actions/upload-artifact": "6f51ac03b9356f520e9adb1b1b7802705f340c2b", // v4.5.0
"amannn/action-semantic-pull-request":
"0723387faaf9b38adef4775cd42cfd5155ed6017", // v5.5.3
"dessant/lock-threads": "1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771", // v5.0.1
"hashicorp/setup-copywrite": "32638da2d4e81d56a0764aa1547882fc4d209636", // v1.1.3
"peter-evans/create-pull-request": "67ccf781d68cd99b580ae25a5c18a1cc84ffff1f", // v7.0.6
};
const project = new CdktfAwsCdkProject({
terraformProvider: "aws@~> 3.0",
cdktfVersion: "0.20.0",
constructsVersion: "10.0.25",
jsiiVersion: "~5.5.0", // JSII and TS should always use the same major/minor version range
minNodeVersion: "18.12.0",
projenrcTs: true,
});
// Use pinned versions of github actions
Object.entries(githubActionPinnedVersions).forEach(([name, sha]) => {
project.github?.actions.set(name, `${name}@${sha}`);
});
project.synth();