-
Notifications
You must be signed in to change notification settings - Fork 60.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
500 changed files
with
8,627 additions
and
1,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Local development | ||
|
||
# **What it does**: Can you start the local server like a writer would do? | ||
# **Why we have it**: Our CI is often heavily geared on testing in "production" | ||
# that historically we've been known to break local | ||
# development sometimes. | ||
# **Who does it impact**: Engineers, Contributors. | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
local-dev: | ||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' | ||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 | ||
|
||
- uses: ./.github/actions/node-npm-setup | ||
|
||
# Note that we don't check out docs-early-access, Elasticsearch, | ||
# or any remote translations. Nothing fancy here! | ||
|
||
- name: Start server in the background | ||
run: npm start > /tmp/stdout.log 2> /tmp/stderr.log & | ||
|
||
- name: View the home page | ||
run: | | ||
echo "Going to sleep a little to wait for the server to start" | ||
sleep 10 | ||
curl --fail --retry-connrefused --retry 5 http://localhost:4000/ | ||
- name: Edit a page's .md file and expect it to appear | ||
run: | | ||
# First append anything to the Markdown page | ||
echo "Today's date $(date)" >> content/get-started/quickstart/hello-world.md | ||
# This pipe to grep will fail if it can't find it in the curl output | ||
curl -L http://localhost:4000/get-started/quickstart/hello-world | grep "Today's date" | ||
- if: ${{ failure() }} | ||
name: Debug server outputs on errors | ||
run: | | ||
echo "____STDOUT____" | ||
cat /tmp/stdout.log | ||
echo "____STDERR____" | ||
cat /tmp/stderr.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
name: Sync CodeQl CLI | ||
|
||
# **What it does**: This workflow is run manually approximately every two weeks. | ||
# When run, this workflow syncs the CodeQL CLI automated pipeline with the semmle-code | ||
# repository, and creates a pull request if there are updates. | ||
# **Why we have it**: So we can automate CodeQL CLI documentation. | ||
# **Who does it impact**: Anyone making CodeQL CLI changes in `github/semmle-code`, and wanting to get them published on the docs site. | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
SOURCE_BRANCH: | ||
description: 'Branch to pull the source files from in the semmle-code repo.' | ||
type: string | ||
required: true | ||
default: 'main' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
generate-codeql-files: | ||
if: github.repository == 'github/docs-internal' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: ${{ env.FREEZE == 'true' }} | ||
run: | | ||
echo 'The repo is currently frozen! Exiting this workflow.' | ||
exit 1 # prevents further steps from running | ||
- name: Checkout repository code | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 | ||
|
||
# Check out a nested repository inside of previous checkout | ||
- name: Checkout semmle-code repo | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 | ||
with: | ||
# By default, only the most recent commit of the `main` branch | ||
# will be checked out | ||
token: ${{ secrets.DOCS_BOT_FR }} | ||
repository: github/semmle-code | ||
path: semmle-code | ||
ref: ${{ github.event.inputs.SOURCE_BRANCH }} | ||
|
||
- uses: ./.github/actions/node-npm-setup | ||
|
||
- name: Get the semmle-code SHA being synced | ||
id: semmle-code | ||
run: | | ||
cd semmle-code | ||
OPENAPI_COMMIT_SHA=$(git rev-parse HEAD) | ||
echo "OPENAPI_COMMIT_SHA=$OPENAPI_COMMIT_SHA" >> $GITHUB_OUTPUT | ||
echo "Copied files from github/semmle-code repo. Commit SHA: $OPENAPI_COMMIT_SHA" | ||
- name: Install pandoc | ||
run: | | ||
# Remove all previous pandoc versions | ||
sudo apt-get purge --auto-remove pandoc | ||
# Download pandoc | ||
wget https://github.com/jgm/pandoc/releases/download/3.0.1/pandoc-3.0.1-1-amd64.deb | ||
# Install pandoc | ||
sudo dpkg -i pandoc-3.0.1-1-amd64.deb | ||
# Output the pandoc version installed | ||
pandoc -v | ||
rm pandoc-3.0.1-1-amd64.deb | ||
- name: Sync the CodeQL CLI data | ||
run: | | ||
src/codeql-cli/scripts/sync.js | ||
git status | ||
echo "Deleting the cloned github/semmle-code repo..." | ||
rm -rf semmle-code | ||
- name: Create pull request | ||
env: | ||
# Needed for gh | ||
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }} | ||
run: | | ||
# If nothing to commit, exit now. It's fine. No orphans. | ||
changes=$(git diff --name-only | wc -l) | ||
untracked=$(git status --untracked-files --short | wc -l) | ||
if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then | ||
echo "There are no changes to commit after running src/codeql/scripts/sync.js. Exiting..." | ||
exit 0 | ||
fi | ||
git config --global user.name "docubot" | ||
git config --global user.email "67483024+docubot@users.noreply.github.com" | ||
branchname=codeql-cli-update-${{ steps.semmle-code.outputs.OPENAPI_COMMIT_SHA }} | ||
branchCheckout=$(git checkout -b $branchname) | ||
if [[! $? -eq 0 ]]; then | ||
echo "Branch $branchname already exists in `github/docs-internal`. Exiting..." | ||
exit 0 | ||
fi | ||
git add . | ||
git commit -m "Update CodeQL CLI data" | ||
git push origin $branchname | ||
echo "Creating pull request..." | ||
gh pr create \ | ||
--title "Update CodeQL CLI manual" \ | ||
--body '👋 humans. This PR updates the CodeQL CLI manual Markdown pages with the latest changes. (Synced from semmle-code@${{ steps.semmle-code.outputs.OPENAPI_COMMIT_SHA }}) | ||
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \ | ||
--repo github/docs-internal \ | ||
--label codeql-cli-pipeline | ||
- name: Send Slack notification if workflow fails | ||
uses: someimportantcompany/github-actions-slack-message@1d367080235edfa53df415bd8e0bbab480f29bad | ||
if: ${{ failure() && env.FREEZE != 'true' }} | ||
with: | ||
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} | ||
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} | ||
color: failure | ||
text: The last Sync CodeQL CLI run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/sync-codeql-cli.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
includes/ | ||
data/release-notes/ | ||
script/bookmarklets/ | ||
/.next/ | ||
|
||
# jest --coverage option | ||
/.coverage | ||
/coverage | ||
|
||
# Automated content source | ||
rest-api-description | ||
semmle-code |
Binary file removed
BIN
-118 KB
assets/images/enterprise/3.2/repository/secret-scanning-create-custom-pattern.png
Binary file not shown.
Binary file removed
BIN
-22.7 KB
assets/images/enterprise/3.2/repository/secret-scanning-resolve-alert-ghe.png
Binary file not shown.
Binary file removed
BIN
-67.6 KB
assets/images/enterprise/3.3/dependabot/dependabot-version-update-error.png
Binary file not shown.
Binary file removed
BIN
-151 KB
...terprise/3.3/organizations/security-and-analysis-disable-or-enable-all-ghas.png
Binary file not shown.
Binary file removed
BIN
-159 KB
.../3.3/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png
Binary file not shown.
Binary file removed
BIN
-43.8 KB
.../images/enterprise/3.3/settings/security-and-analysis-disable-or-enable-all.png
Binary file not shown.
Binary file removed
BIN
-19.7 KB
...es/enterprise/3.3/settings/security-and-analysis-enable-by-default-in-modal.png
Binary file not shown.
Binary file removed
BIN
-43.8 KB
...prise/3.3/settings/security-and-analysis-enable-or-disable-feature-checkbox.png
Binary file not shown.
Binary file removed
BIN
-33.2 KB
assets/images/enterprise/3.5/dependabot/dependabot-alerts-filters.png
Binary file not shown.
Binary file removed
BIN
-79.4 KB
...se/github-ae/organizations/security-and-analysis-disable-or-enable-all-ghae.png
Binary file not shown.
Binary file removed
BIN
-27.7 KB
...tions/security-and-analysis-enable-or-disable-secret-scanning-checkbox-ghae.png
Binary file not shown.
Binary file removed
BIN
-14.2 KB
...anizations/security-and-analysis-enable-secret-scanning-existing-repos-ghae.png
Binary file not shown.
Binary file removed
BIN
-24.6 KB
assets/images/enterprise/github-ae/repository/enable-ghas-secret-scanning-ghae.png
Binary file not shown.
Binary file added
BIN
+69.1 KB
...ise/orgs-and-teams/security-and-analysis-enable-or-disable-feature-checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-71.1 KB
assets/images/github-apps/github_apps_new_requested_action_commit.png
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+17.4 KB
(130%)
assets/images/github-apps/github_apps_private_key_fingerprint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified
BIN
+63.5 KB
(380%)
assets/images/help/enterprises/dependabot-alerts-options-no-UI.png
Oops, something went wrong.
Binary file added
BIN
+135 KB
assets/images/help/notifications/secret-scanning-notification-options.png
Oops, something went wrong.
Binary file modified
BIN
+11.8 KB
(130%)
assets/images/help/organizations/dependabot-private-repo-choose.png
Oops, something went wrong.
Binary file modified
BIN
+50 KB
(190%)
assets/images/help/organizations/dependabot-private-repository-access.png
Oops, something went wrong.
Binary file removed
BIN
-16.6 KB
assets/images/help/organizations/dependabot-private-repository-list.png
Diff not rendered.
Binary file removed
BIN
-68.4 KB
...s/images/help/organizations/secret-scanning-enable-push-protection-org-ghes.png
Diff not rendered.
Binary file removed
BIN
-55 KB
assets/images/help/organizations/secret-scanning-enable-push-protection-org.png
Diff not rendered.
Binary file removed
BIN
-224 KB
...s/images/help/organizations/security-and-analysis-disable-or-enable-all-fpt.png
Diff not rendered.
Binary file removed
BIN
-285 KB
...es/help/organizations/security-and-analysis-disable-or-enable-all-ghas-ghec.png
Diff not rendered.
Binary file modified
BIN
+6.79 KB
(120%)
.../images/help/organizations/security-and-analysis-enable-by-default-in-modal.png
Oops, something went wrong.
Binary file modified
BIN
-26.7 KB
(59%)
...help/organizations/security-and-analysis-enable-or-disable-feature-checkbox.png
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Binary file modified
BIN
+93.3 KB
(530%)
assets/images/help/pages/click-private-pages-url-to-preview.png
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-20 KB
(72%)
assets/images/help/pages/publishing-source-folder-drop-down.png
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+235 KB
(850%)
assets/images/help/repository/review-calls-to-vulnerable-functions.png
Oops, something went wrong.
Binary file modified
BIN
+404 KB
(470%)
.../repository/secret-scanning-dismiss-alert-web-ui-link-partner-documentation.png
Oops, something went wrong.
Binary file removed
BIN
-19.7 KB
...ges/help/repository/secret-scanning-dry-run-custom-pattern-select-repo-only.png
Diff not rendered.
Binary file removed
BIN
-76.2 KB
...help/repository/secret-scanning-push-protection-web-ui-allow-secret-options.png
Diff not rendered.
Binary file removed
BIN
-17.7 KB
...mages/help/repository/secret-scanning-push-protection-web-ui-commit-allowed.png
Diff not rendered.
Binary file removed
BIN
-35.8 KB
...tory/secret-scanning-push-protection-web-ui-commit-blocked-banner-with-link.png
Diff not rendered.
Binary file removed
BIN
-208 KB
...elp/repository/secret-scanning-push-protection-web-ui-commit-blocked-banner.png
Diff not rendered.
Binary file removed
BIN
-65.7 KB
assets/images/help/repository/secret-scanning-push-protection-with-custom-link.png
Diff not rendered.
Binary file removed
BIN
-125 KB
assets/images/help/repository/secret-scanning-push-protection-with-link.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-38.9 KB
assets/images/help/settings/saved-replies-edit-existing-content.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-26.1 KB
assets/images/help/settings/security-and-analysis-disable-or-enable-all.png
Diff not rendered.
Binary file modified
BIN
+32.4 KB
(340%)
assets/images/help/settings/security-and-analysis-enable-by-default-in-modal.png
Oops, something went wrong.
Binary file removed
BIN
-69.8 KB
...ages/help/settings/security-and-analysis-enable-or-disable-feature-checkbox.png
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+32.7 KB
(550%)
assets/images/help/writing/code-block-syntax-highlighting-rendered.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+28.9 KB
(810%)
assets/images/help/writing/dollar-sign-inline-math-expression.png
Oops, something went wrong.
Binary file modified
BIN
+39.3 KB
(820%)
assets/images/help/writing/dollar-sign-within-math-expression.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+18.2 KB
(2000%)
assets/images/help/writing/fenced-code-show-backticks-rendered.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+47.1 KB
(910%)
assets/images/help/writing/inline-math-markdown-rendering.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+81.9 KB
(1000%)
assets/images/help/writing/math-expression-as-a-block-rendering.png
Oops, something went wrong.
Binary file modified
BIN
+22.2 KB
(800%)
assets/images/help/writing/math-expression-as-a-fenced-code-block.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+10.7 KB
(180%)
assets/images/help/writing/supported-color-models-rendered.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+17.8 KB
(670%)
assets/images/help/writing/table-escaped-character-rendered.png
Oops, something went wrong.
Binary file modified
BIN
+40.4 KB
(520%)
assets/images/help/writing/table-inline-formatting-rendered.png
Oops, something went wrong.
Binary file modified
BIN
+36.7 KB
(540%)
assets/images/help/writing/table-varied-columns-rendered.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.