Skip to content

Commit b6c7203

Browse files
authored
Merge branch 'main' into mchammer01/push-protection-public
2 parents 4d086f2 + a77a26a commit b6c7203

304 files changed

Lines changed: 1340422 additions & 859733 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ package.json @github/docs-engineering
2424
/translations/log/ @github/docs-localization @Octomerger
2525

2626
# Site Policy
27-
/content/github/site-policy/ @github/site-policy-admins
27+
/content/site-policy/ @github/site-policy-admins
2828

2929
# Content strategy
3030
/contributing/content-markup-reference.md @github/docs-content-strategy
3131
/contributing/content-style-guide.md @github/docs-content-strategy
3232
/contributing/content-model.md @github/docs-content-strategy
3333
/contributing/content-style-guide.md @github/docs-content-strategy
3434
/contributing/content-templates.md @github/docs-content-strategy
35-
36-
# Make sure that Octokit maintainers get notified about changes
37-
# relevant to the Octokit libraries (https://github.com/octokit)
38-
/content/rest/reference @github/octokit-maintainers

.github/actions-scripts/get-preview-app-info.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
[[ -z $APP_NAME_SEED ]] && { echo "Missing APP_NAME_SEED. Exiting."; exit 1; }
1414

1515
PREVIEW_ENV_LOCATION="eastus"
16-
echo "PREVIEW_ENV_LOCATION=${PREVIEW_ENV_LOCATION}" >> $GITHUB_ENV
1716

1817
REPO_NAME="${GITHUB_REPOSITORY#*\/}"
1918
echo "REPO_NAME=${REPO_NAME}" >> $GITHUB_ENV
@@ -22,15 +21,14 @@ DEPLOYMENT_NAME="${REPO_NAME}-pr-${PR_NUMBER}"
2221
echo "DEPLOYMENT_NAME=${DEPLOYMENT_NAME}" >> $GITHUB_ENV
2322

2423
APP_NAME_BASE="${REPO_NAME}-preview-${PR_NUMBER}"
25-
echo "APP_NAME_BASE=${APP_NAME_BASE}" >> $GITHUB_ENV
2624

2725
# pseudo random string so guessing a preview env URL is more difficult
2826
APP_SHA=$(echo -n "${APP_NAME_SEED}-${APP_NAME_BASE}" | sha1sum | cut -c1-6)
2927

3028
APP_NAME="${APP_NAME_BASE}-${APP_SHA}"
3129
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV
3230

33-
APP_URL="https://${APP_NAME}.${PREVIEW_ENV_LOCATION}.azurecontainer.io"
31+
APP_URL="https://${REPO_NAME}-${PR_NUMBER}-${APP_SHA}.preview.ghdocs.com"
3432
echo "APP_URL=${APP_URL}" >> $GITHUB_ENV
3533

3634
IMAGE_REPO="${GITHUB_REPOSITORY}/pr-${PR_NUMBER}"

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,10 @@ jobs:
203203
template: ./azure-preview-env-template.json
204204
deploymentName: ${{ env.DEPLOYMENT_NAME }}
205205
parameters: appName="${{ env.APP_NAME }}"
206-
location="${{ env.PREVIEW_ENV_LOCATION }}"
207206
containerImage="${{ env.DOCKER_IMAGE }}"
208207
dockerRegistryUrl="${{ secrets.NONPROD_REGISTRY_SERVER }}"
209208
dockerRegistryUsername="${{ secrets.NONPROD_REGISTRY_USERNAME }}"
210209
dockerRegistryPassword="${{ secrets.NONPROD_REGISTRY_PASSWORD }}"
211-
storageAccountName="${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}"
212-
storageAccountKey="${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }}"
213210
# this shows warnings in the github actions console, because the flag is passed through a validation run,
214211
# but it *is* functional during the actual execution
215212
additionalArguments: --no-wait

.github/workflows/optimize-images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
2424
with:
2525
ref: ${{ github.head_ref }}
26+
# Need to specify a PAT here because otherwise GITHUB_TOKEN is used
27+
# by default. Workflows won't trigger in that case because actions
28+
# performed with GITHUB_TOKEN don't trigger other workflows.
29+
token: ${{ secrets.DOCUBOT_REPO_PAT }}
2630

2731
- name: Check out base ref
2832
run: git fetch --no-tags --depth=1 origin $GITHUB_BASE_REF

LICENSE-CODE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 GitHub
3+
Copyright 2022 GitHub
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
17 KB
Loading
17.2 KB
Loading
143 KB
Loading
22.9 KB
Loading

azure-preview-env-template.json

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"description": "A unique name for the app"
1212
}
1313
},
14-
"location": {
15-
"type": "String"
16-
},
1714
"containerImage": {
1815
"type": "string",
1916
"defaultValue": null,
@@ -32,12 +29,6 @@
3229
},
3330
"dockerRegistryPassword": {
3431
"type": "SecureString"
35-
},
36-
"storageAccountName": {
37-
"type": "String"
38-
},
39-
"storageAccountKey": {
40-
"type": "SecureString"
4132
}
4233
},
4334
"resources": [
@@ -83,53 +74,6 @@
8374
}
8475
}
8576
}
86-
},
87-
{
88-
"name": "caddy-ssl-server",
89-
"properties": {
90-
"image": "caddy:2.4.6",
91-
"command": [
92-
"caddy",
93-
"reverse-proxy",
94-
"--from",
95-
"[concat(parameters('appName'), '.', parameters('location'), '.azurecontainer.io')]",
96-
"--to",
97-
"localhost:4000"
98-
],
99-
"ports": [
100-
{
101-
"protocol": "TCP",
102-
"port": 443
103-
},
104-
{
105-
"protocol": "TCP",
106-
"port": 80
107-
}
108-
],
109-
"environmentVariables": [],
110-
"resources": {
111-
"requests": {
112-
"memoryInGB": 1,
113-
"cpu": 1
114-
}
115-
},
116-
"volumeMounts": [
117-
{
118-
"name": "caddy-data",
119-
"mountPath": "/data"
120-
}
121-
]
122-
}
123-
}
124-
],
125-
"volumes": [
126-
{
127-
"name": "caddy-data",
128-
"azureFile": {
129-
"shareName": "caddy",
130-
"storageAccountName": "[parameters('storageAccountName')]",
131-
"storageAccountKey": "[parameters('storageAccountKey')]"
132-
}
13377
}
13478
],
13579
"imageRegistryCredentials": [
@@ -142,17 +86,9 @@
14286
"restartPolicy": "Always",
14387
"ipAddress": {
14488
"ports": [
145-
{
146-
"protocol": "TCP",
147-
"port": 443
148-
},
14989
{
15090
"protocol": "TCP",
15191
"port": 4000
152-
},
153-
{
154-
"protocol": "TCP",
155-
"port": 80
15692
}
15793
],
15894
"type": "Public",

0 commit comments

Comments
 (0)