Skip to content

Commit a1c1139

Browse files
authored
[ci] Migrate to the 1ES template (#8)
Context: https://aka.ms/1espt The build pipeline has been updated to extend the 1ES pipeline template, which will keep the pipeline up to date with the latest compliance and security requirements. Compliance tasks and scans will run automatically as part of artifact upload steps, which are now referred to as "outputs". Template outputs have replaced all instances of the `PublishPipelineArtifact` task. The new compliance steps appear to have added ~4 hours to the build in the worst-case scenario (from 1.5 hours to 5.5 hours). This appears to mostly be a result of CodeQL.
1 parent 4b560da commit a1c1139

File tree

5 files changed

+331
-220
lines changed

5 files changed

+331
-220
lines changed

.gdn/.gdnsettings

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files": { },
3+
"folders": { },
4+
"overwriteLogs": true,
5+
"telemetryFlushTimeout": 10,
6+
"variables": { }
7+
}

.gdn/.gdnsuppress

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"hydrated": false,
3+
"properties": {
4+
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/suppressions",
5+
"hydrationStatus": "This file does not contain identifying data. It is safe to check into your repo. To hydrate this file with identifying data, run `guardian hydrate --help` and follow the guidance."
6+
},
7+
"version": "1.0.0",
8+
"suppressionSets": {
9+
"default": {
10+
"name": "default",
11+
"createdDate": "2024-02-15 00:04:36Z",
12+
"lastUpdatedDate": "2024-02-15 00:04:36Z"
13+
}
14+
},
15+
"results": {
16+
"56abf01a2bb694a67c82be21f03a0dd66f296b49029f3c23bf6f3f82501cd2a3": {
17+
"signature": "56abf01a2bb694a67c82be21f03a0dd66f296b49029f3c23bf6f3f82501cd2a3",
18+
"alternativeSignatures": [
19+
"be97b4284131d0f331716c30392a1e1d25474b8694363df3eea88a91d4152094"
20+
],
21+
"memberOf": [
22+
"default"
23+
],
24+
"justification": "Unable to resolve BA2007 identified in external LLVM CMake configuration.",
25+
"createdDate": "2024-02-15 00:04:36Z"
26+
},
27+
"5eceb0d6d6dba608d129867a6be091ad2bae06078aa8a057dfa67331c4b98772": {
28+
"signature": "5eceb0d6d6dba608d129867a6be091ad2bae06078aa8a057dfa67331c4b98772",
29+
"alternativeSignatures": [
30+
"23dc4e92dd0ab3635230bd466fdde746fa0be745694ba8530eab31091dc375e8"
31+
],
32+
"memberOf": [
33+
"default"
34+
],
35+
"justification": "Unable to resolve BA2007 identified in external LLVM CMake configuration.",
36+
"createdDate": "2024-02-15 00:04:36Z"
37+
},
38+
"fe61820f6936ba46368b182d5bbfc9576302c6c513803481bccdf0d863b966eb": {
39+
"signature": "fe61820f6936ba46368b182d5bbfc9576302c6c513803481bccdf0d863b966eb",
40+
"alternativeSignatures": [
41+
"1868f8371a1ab6e1d82ab77b47a50f067e589870b4432ac45a2590876afd824e"
42+
],
43+
"memberOf": [
44+
"default"
45+
],
46+
"justification": "Unable to resolve BA2007 identified in external LLVM CMake configuration.",
47+
"createdDate": "2024-02-15 00:04:36Z"
48+
},
49+
"fbf0466272fbf02d7b438d4adc1e193bc720677a220027755f5db357559a5777": {
50+
"signature": "fbf0466272fbf02d7b438d4adc1e193bc720677a220027755f5db357559a5777",
51+
"alternativeSignatures": [
52+
"6da9f7a139b0c80204a3573e089aa0345b453280ac942cb59c224b7c6866af43"
53+
],
54+
"memberOf": [
55+
"default"
56+
],
57+
"justification": "Unable to resolve BA2007 identified in external LLVM CMake configuration.",
58+
"createdDate": "2024-02-15 00:04:36Z"
59+
}
60+
}
61+
}

.gdn/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Ignore Guardian internal files
2+
.r/
3+
rc/
4+
rs/
5+
i/
6+
p/
7+
c/
8+
o/
9+
10+
## Ignore Guardian Local settings
11+
LocalSettings.gdn.json

build-llvm.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ set PDBS=llvm-mc.pdb llvm-strip.pdb lld.pdb llc.pdb
1212
set HOST_BUILD_DIR=%BUILD_DIR%\%HOST%
1313
set HOST_BIN_DIR=%HOST_BUILD_DIR%\Release\bin
1414
set HOST_ARTIFACTS_DIR=%ARTIFACTS_DIR%\%HOST%
15-
set LLVM_VERSION_FILE=%HOST_ARTIFACTS_DIR%\llvm-version.txtt
16-
set CXXFLAGS="/Qspectre /sdl"
15+
set LLVM_VERSION_FILE=%HOST_ARTIFACTS_DIR%\llvm-version.txt
16+
set CXXFLAGS="/Qspectre /sdl /guard:cf"
1717

1818
if exist %HOST_BUILD_DIR% (rmdir /S /Q %HOST_BUILD_DIR%)
1919
mkdir %HOST_BUILD_DIR%
@@ -27,7 +27,7 @@ cmake --version
2727
cmake --help
2828

2929
cmake -G "Visual Studio 17 2022" -A x64 ^
30-
-DCMAKE_EXE_LINKER_FLAGS_INIT="/PROFILE /DYNAMICBASE /CETCOMPAT" ^
30+
-DCMAKE_EXE_LINKER_FLAGS_INIT="/PROFILE /DYNAMICBASE /CETCOMPAT /guard:cf" ^
3131
-DBUILD_SHARED_LIBS=OFF ^
3232
-DCMAKE_BUILD_TYPE=Release ^
3333
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" ^

0 commit comments

Comments
 (0)