Skip to content

Commit e6153eb

Browse files
Merge branch 'main' into gha-hardening-pull-request-target
2 parents ba5b0c4 + cf9428b commit e6153eb

File tree

285 files changed

+26853
-3455
lines changed

Some content is hidden

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

285 files changed

+26853
-3455
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# To find available Node images, see https://mcr.microsoft.com/en-us/product/devcontainers/javascript-node/tags
22

33
# [Choice] Node.js version
4-
ARG VARIANT="dev-22-bullseye"
4+
ARG VARIANT="dev-24-bullseye"
55
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": {
77
"dockerfile": "Dockerfile",
88
// Update 'VARIANT' to pick a Node version
9-
"args": { "VARIANT": "22" }
9+
"args": { "VARIANT": "24" }
1010
},
1111

1212
// Install features. Type 'feature' in the VS Code command palette for a full list.

.github/actions/get-changed-files/get-changed-files.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ git fetch --depth=1 origin main
1818
git fetch --depth=1 origin ${INPUT_HEAD:-HEAD}
1919

2020
# Get diff with status information
21+
# Find the merge-base (common ancestor) instead of using origin/main directly
2122
echo "__ running git diff with status __"
22-
DIFF_OUTPUT=$(git diff --name-status origin/main origin/${INPUT_HEAD:-HEAD})
23+
DIFF_OUTPUT=$(git diff --name-status origin/main...origin/${INPUT_HEAD:-HEAD})
2324

2425
# Function to extract files by pattern from diff output
2526
extract_files() {

.github/workflows/article-api-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
check-content-linter-rules-docs:
21-
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
21+
runs-on: ubuntu-latest
2222
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
2323
steps:
2424
- name: Checkout

.github/workflows/auto-close-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
# Because we get far too much spam ;_;
5252
- name: Lock conversations
53-
uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
53+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
5454
env:
5555
PR_NUMBER: ${{ github.event.pull_request.number }}
5656
with:

.github/workflows/changelog-prompt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Check if PR author is in docs-content team
2222
id: check_team
23-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
23+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2424
with:
2525
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
2626
script: |
@@ -41,7 +41,7 @@ jobs:
4141

4242
if: env.CONTINUE_WORKFLOW == 'true'
4343

44-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
44+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4545
with:
4646
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
4747
script: |

.github/workflows/check-for-spammy-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: github.repository == 'github/docs'
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
20+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
2121
with:
2222
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
2323
script: |

.github/workflows/close-bad-repo-sync-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Close pull request if unwanted
25-
uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
25+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
2626
with:
2727
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
2828
script: |

.github/workflows/confirm-internal-staff-work-in-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: github.repository == 'github/docs' && github.actor != 'docs-bot'
2525
steps:
2626
- id: membership_check
27-
uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
27+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
2828
env:
2929
TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }}
3030
with:

.github/workflows/content-lint-markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
jobs:
2121
lint-content:
2222
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
23-
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
23+
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out repo
2626
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

0 commit comments

Comments
 (0)