Skip to content

Commit

Permalink
repo sync (github#16442)
Browse files Browse the repository at this point in the history
* Updated language to reference enabling instead of opt-in

* Optimize images

* fixing broken link

* Update content/get-started/privacy-on-github/about-githubs-use-of-your-data.md

Co-authored-by: Felicity Chapman <[email protected]>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <[email protected]>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <[email protected]>

* Openapi update api.github.com (github#26398)

* Openapi 3.0 ghae (github#26400)

* Update OpenAPI  Descriptions (github#26397)

* Fix a change missed in a last minute update (github#26389)

* change order of some site-policy docs (github#26307)

* reordering the docs

* Create codespace.md

* Update README.md

* Update README.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update OpenAPI  Descriptions

* update preview env app_url to preview.ghdocs.com (github#26335)

* Fix flag (github#26420)

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Remove Caddy from preview envs (github#26336)

* remove caddy from preview envs

* fix: remove location from template

Co-authored-by: Peter Bengtsson <[email protected]>

* Add `Ignore commits in the blame view` to blame docs (github#26017)

* Connect addendum deprecation (github#26296)

* temporarily commented  out

* also comment out

* also comment out

Co-authored-by: Jenni Christensen <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Felicity Chapman <[email protected]>
Co-authored-by: Rachael Sewell <[email protected]>
Co-authored-by: github-openapi-bot <[email protected]>
Co-authored-by: Abby Vollmer <[email protected]>
Co-authored-by: hubwriter <[email protected]>
Co-authored-by: docubot <[email protected]>
Co-authored-by: Mike Surowiec <[email protected]>
Co-authored-by: Matt Pollard <[email protected]>
Co-authored-by: Peter Bengtsson <[email protected]>
Co-authored-by: Jason Etcovitch <[email protected]>
Co-authored-by: Billy Rusteen <[email protected]>
  • Loading branch information
14 people authored Mar 22, 2022
1 parent 04f9e9e commit ac3d59a
Show file tree
Hide file tree
Showing 34 changed files with 1,337,614 additions and 858,407 deletions.
4 changes: 1 addition & 3 deletions .github/actions-scripts/get-preview-app-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
[[ -z $APP_NAME_SEED ]] && { echo "Missing APP_NAME_SEED. Exiting."; exit 1; }

PREVIEW_ENV_LOCATION="eastus"
echo "PREVIEW_ENV_LOCATION=${PREVIEW_ENV_LOCATION}" >> $GITHUB_ENV

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

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

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

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

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

IMAGE_REPO="${GITHUB_REPOSITORY}/pr-${PR_NUMBER}"
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/azure-preview-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,10 @@ jobs:
template: ./azure-preview-env-template.json
deploymentName: ${{ env.DEPLOYMENT_NAME }}
parameters: appName="${{ env.APP_NAME }}"
location="${{ env.PREVIEW_ENV_LOCATION }}"
containerImage="${{ env.DOCKER_IMAGE }}"
dockerRegistryUrl="${{ secrets.NONPROD_REGISTRY_SERVER }}"
dockerRegistryUsername="${{ secrets.NONPROD_REGISTRY_USERNAME }}"
dockerRegistryPassword="${{ secrets.NONPROD_REGISTRY_PASSWORD }}"
storageAccountName="${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}"
storageAccountKey="${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }}"
# this shows warnings in the github actions console, because the flag is passed through a validation run,
# but it *is* functional during the actual execution
additionalArguments: --no-wait
31 changes: 15 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ jobs:
fail-fast: false
matrix:
# The same array lives in test-windows.yml, so make any updates there too.
test-group:
[
test-group: [
content,
graphql,
meta,
rendering,
routing,
unit,
linting,
# linting,
translations,
]
steps:
Expand Down Expand Up @@ -102,20 +101,20 @@ jobs:
- name: Checkout LFS objects
run: git lfs checkout

- name: Gather files changed
uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b
id: get_diff_files
with:
# So that `steps.get_diff_files.outputs.files` becomes
# a string like `foo.js path/bar.md`
output: ' '
# - name: Gather files changed
# uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b
# id: get_diff_files
# with:
# # So that `steps.get_diff_files.outputs.files` becomes
# # a string like `foo.js path/bar.md`
# output: ' '

- name: Insight into changed files
run: |
# - name: Insight into changed files
# run: |

# Must to do this because the list of files can be HUGE. Especially
# in a repo-sync when there are lots of translation files involved.
echo "${{ steps.get_diff_files.outputs.files }}" > get_diff_files.txt
# # Must to do this because the list of files can be HUGE. Especially
# # in a repo-sync when there are lots of translation files involved.
# echo "${{ steps.get_diff_files.outputs.files }}" > get_diff_files.txt

- name: Setup node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
Expand All @@ -137,6 +136,6 @@ jobs:

- name: Run tests
env:
DIFF_FILE: get_diff_files.txt
# DIFF_FILE: get_diff_files.txt
CHANGELOG_CACHE_FILE_PATH: tests/fixtures/changelog-feed.json
run: npm test -- tests/${{ matrix.test-group }}/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 0 additions & 64 deletions azure-preview-env-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"description": "A unique name for the app"
}
},
"location": {
"type": "String"
},
"containerImage": {
"type": "string",
"defaultValue": null,
Expand All @@ -32,12 +29,6 @@
},
"dockerRegistryPassword": {
"type": "SecureString"
},
"storageAccountName": {
"type": "String"
},
"storageAccountKey": {
"type": "SecureString"
}
},
"resources": [
Expand Down Expand Up @@ -83,53 +74,6 @@
}
}
}
},
{
"name": "caddy-ssl-server",
"properties": {
"image": "caddy:2.4.6",
"command": [
"caddy",
"reverse-proxy",
"--from",
"[concat(parameters('appName'), '.', parameters('location'), '.azurecontainer.io')]",
"--to",
"localhost:4000"
],
"ports": [
{
"protocol": "TCP",
"port": 443
},
{
"protocol": "TCP",
"port": 80
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1,
"cpu": 1
}
},
"volumeMounts": [
{
"name": "caddy-data",
"mountPath": "/data"
}
]
}
}
],
"volumes": [
{
"name": "caddy-data",
"azureFile": {
"shareName": "caddy",
"storageAccountName": "[parameters('storageAccountName')]",
"storageAccountKey": "[parameters('storageAccountKey')]"
}
}
],
"imageRegistryCredentials": [
Expand All @@ -142,17 +86,9 @@
"restartPolicy": "Always",
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 443
},
{
"protocol": "TCP",
"port": 4000
},
{
"protocol": "TCP",
"port": 80
}
],
"type": "Public",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ You'll see updates in your news feed when a user you follow:
- Forks a public repository.{% endif %}
- Publishes a new release.

For more information about starring repositories and following people, see "[Following people](/articles/following-people)" and "[Be social](/get-started/quickstart/be-social)."
For more information about following people and watching repositories, see "[Following people](/get-started/exploring-projects-on-github/following-people)" and "[Be social](/get-started/quickstart/be-social)."

{% if for-you-feed %}
### For you feed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ shortTitle: GitHub's use of your data

## About {% data variables.product.product_name %}'s use of your data

{% data variables.product.product_name %} aggregates metadata and parses content patterns for the purposes of delivering generalized insights within the product. It uses data from public repositories, and also uses metadata and aggregate data from private repositories when a repository's owner has chosen to share the data with {% data variables.product.product_name %} through an opt-in. If you opt a private repository into data use, then it will perform read-only analysis of that specific private repository.
{% data variables.product.product_name %} aggregates metadata and parses content patterns for the purposes of delivering generalized insights within the product. It uses data from public repositories, and also uses metadata and aggregate data from private repositories when a repository's owner has chosen to share the data with {% data variables.product.product_name %} by enabling the dependency graph. If you enable the dependency graph for a private repository, then {% data variables.product.product_name %} will perform read-only analysis of that specific private repository.

If you enable data use for a private repository, we will continue to treat your private data, source code, or trade secrets as confidential and private consistent with our [Terms of Service](/free-pro-team@latest/github/site-policy/github-terms-of-service). The information we learn only comes from aggregated data. For more information, see "[Managing data use settings for your private repository](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository)."

{% data reusables.repositories.about-github-archive-program %} For more information, see "[About archiving content and data on {% data variables.product.prodname_dotcom %}](/github/creating-cloning-and-archiving-repositories/about-archiving-content-and-data-on-github#about-the-github-archive-program)."

{% data reusables.user-settings.export-data %} For more information, see "[Requesting an archive of your personal account's data](/articles/requesting-an-archive-of-your-personal-account-s-data)."

If you opt in to data use for a private repository, we will continue to treat your private data, source code, or trade secrets as confidential and private consistent with our [Terms of Service](/free-pro-team@latest/github/site-policy/github-terms-of-service). The information we learn only comes from aggregated data. For more information, see "[Managing data use settings for your private repository](/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository)."

We'll announce substantial new features that use metadata or aggregate data on the [{% data variables.product.prodname_dotcom %} blog](https://github.com/blog).

## How data improves security recommendations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,22 @@ shortTitle: Manage data use for private repo

## About data use for your private repository


You can control data use for your private repository with the security and analysis features.

- Enable the dependency graph to allow read-only data analysis on your repository.
- Disable the dependency graph to block read-only data analysis of your repository.

When you enable data use for your private repository, you'll be able to access the dependency graph, where you can track your repository's dependencies and receive {% data variables.product.prodname_dependabot_alerts %} when {% data variables.product.product_name %} detects vulnerable dependencies. For more information, see "[About {% data variables.product.prodname_dependabot_alerts %}](/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies#dependabot-alerts-for-vulnerable-dependencies)."

## Enabling or disabling data use features

{% note %}

**Note:** If you disable the dependency graph, {% data variables.product.prodname_dependabot_alerts %} and {% data variables.product.prodname_dependabot_security_updates %} are also disabled. For more information, see "[About the dependency graph](/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph)."

{% endnote %}

## Enabling or disabling data use through security and analysis features

{% data reusables.security.security-and-analysis-features-enable-read-only %}

Expand Down
Loading

0 comments on commit ac3d59a

Please sign in to comment.