Skip to content

Commit f784cb8

Browse files
Merge branch 'main' into patch-14
2 parents 5b923c4 + 14628e7 commit f784cb8

242 files changed

Lines changed: 14070 additions & 6950 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/actions/labeler/labeler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* See function main in this file for documentation */
22

3-
import coreLib from '@actions/core'
3+
import * as coreLib from '@actions/core'
44
import { type Octokit } from '@octokit/rest'
55
import { CoreInject } from '@/links/scripts/action-injections'
66

.github/workflows/check-broken-links-github-github.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ jobs:
4444
PORT: 4000
4545
ENABLED_LANGUAGES: en
4646
run: |
47-
48-
npm run start &
47+
npm run start-for-ci &
4948
sleep 5
50-
curl --retry-connrefused --retry 3 -I http://localhost:4000/
49+
curl --retry-connrefused --retry 5 -I http://localhost:4000/
5150
5251
- name: Run broken github/github link check
5352
run: |

.github/workflows/index-general-search.yml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,21 +230,64 @@ jobs:
230230
FASTLY_SURROGATE_KEY: api-search:${{ matrix.language }}
231231
run: npm run purge-fastly-edge-cache
232232

233-
- name: Alert on scraping failures
234-
if: ${{ steps.check-failures.outputs.has_failures == 'true' && github.event_name != 'workflow_dispatch' }}
235-
uses: ./.github/actions/slack-alert
233+
- name: Upload failures artifact
234+
if: ${{ steps.check-failures.outputs.has_failures == 'true' }}
235+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
236+
with:
237+
name: search-failures-${{ matrix.language }}
238+
path: /tmp/records/failures-summary.json
239+
retention-days: 1
240+
241+
- uses: ./.github/actions/slack-alert
242+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
236243
with:
237244
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
238245
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
239-
message: |
240-
:warning: ${{ steps.check-failures.outputs.failed_pages }} page(s) failed to scrape for general search indexing (language: ${{ matrix.language }})
241246

242-
The indexing completed but some pages could not be scraped. This may affect search results for those pages.
247+
notifyScrapingFailures:
248+
name: Notify scraping failures
249+
needs: updateElasticsearchIndexes
250+
if: ${{ always() && github.repository == 'github/docs-internal' && github.event_name != 'workflow_dispatch' && needs.updateElasticsearchIndexes.result != 'cancelled' }}
251+
runs-on: ubuntu-latest
252+
steps:
253+
- name: Check out repo
254+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
255+
256+
- name: Download all failure artifacts
257+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
258+
with:
259+
pattern: search-failures-*
260+
path: /tmp/failures
261+
continue-on-error: true
243262

244-
Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
263+
- name: Check if any failures were downloaded
264+
id: check-artifacts
265+
run: |
266+
if [ -d /tmp/failures ] && [ "$(ls -A /tmp/failures 2>/dev/null)" ]; then
267+
echo "has_artifacts=true" >> $GITHUB_OUTPUT
268+
else
269+
echo "has_artifacts=false" >> $GITHUB_OUTPUT
270+
fi
245271
246-
- uses: ./.github/actions/slack-alert
247-
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
272+
- uses: ./.github/actions/node-npm-setup
273+
if: ${{ steps.check-artifacts.outputs.has_artifacts == 'true' }}
274+
275+
- name: Aggregate failures and format message
276+
if: ${{ steps.check-artifacts.outputs.has_artifacts == 'true' }}
277+
id: aggregate
278+
run: |
279+
RESULT=$(npx tsx src/search/scripts/aggregate-search-index-failures.ts /tmp/failures \
280+
--workflow-url "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}")
281+
{
282+
echo 'result<<EOF'
283+
echo "$RESULT"
284+
echo 'EOF'
285+
} >> "$GITHUB_OUTPUT"
286+
287+
- name: Send consolidated Slack notification
288+
if: ${{ steps.check-artifacts.outputs.has_artifacts == 'true' }}
289+
uses: ./.github/actions/slack-alert
248290
with:
249291
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
250292
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
293+
message: ${{ fromJSON(steps.aggregate.outputs.result).message }}
-8.33 KB
Binary file not shown.

assets/images/social-cards/_convert-svgs.sh

Lines changed: 0 additions & 87 deletions
This file was deleted.

assets/images/social-cards/_default.svg

Lines changed: 0 additions & 37 deletions
This file was deleted.

assets/images/social-cards/_template.svg

Lines changed: 0 additions & 48 deletions
This file was deleted.

content/actions/concepts/security/openid-connect.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,20 @@ For more information, see [AUTOTITLE](/actions/reference/openid-connect-referenc
115115

116116
{% data variables.product.prodname_actions %} workflows can use OIDC tokens instead of secrets to authenticate with cloud providers. Many popular cloud providers offer official login actions that simplify the process of using OIDC in your workflows. For more information about updating your workflows with specific cloud providers, see [AUTOTITLE](/actions/how-tos/security-for-github-actions/security-hardening-your-deployments).
117117

118+
## OIDC support for {% data variables.product.prodname_dependabot %}
119+
120+
{% data variables.product.prodname_dependabot %} can use OIDC to authenticate with private registries, eliminating the need to store long-lived credentials as repository secrets. With OIDC-based authentication, {% data variables.product.prodname_dependabot %} update jobs can dynamically obtain short-lived credentials from your cloud identity provider.
121+
122+
{% data variables.product.prodname_dependabot %} supports OIDC authentication for any registry type that uses `username` and `password` authentication, when the registry is hosted on AWS CodeArtifact, Azure DevOps Artifacts, or JFrog Artifactory.
123+
124+
The benefits of OIDC authentication for {% data variables.product.prodname_dependabot %} are:
125+
126+
* **Enhanced security:** Eliminates static, long-lived credentials from your repositories.
127+
* **Simpler management:** Enables secure, policy-compliant access to private registries.
128+
* **Avoid rate limiting:** Dynamic credentials help you avoid hitting rate limits associated with static tokens.
129+
130+
For more information, see [AUTOTITLE](/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot#using-oidc-for-authentication).
131+
118132
## Next steps
119133

120134
For more information about configuring OIDC, see [AUTOTITLE](/actions/how-tos/security-for-github-actions/security-hardening-your-deployments).

content/actions/how-tos/get-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Some information that {% data variables.contact.github_support %} will request c
3737
* A copy of your workflow run logs for an example workflow run failure. For more information about workflow run logs, see [AUTOTITLE](/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs#downloading-logs).
3838
* {% ifversion ghes %}A copy of your runner logs, {% else %}If you are running this workflow on a self-hosted runner, self-hosted runner logs{% endif %} which can be found under the `_diag` folder within the runner. For more information about self-hosted runners, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/monitoring-and-troubleshooting-self-hosted-runners#reviewing-the-self-hosted-runner-application-log-files).
3939

40-
Self-hosted runner log file names are be formatted: `Runner_YYYY####-xxxxxx-utc.log` and `Worker_YYYY####-xxxxxx-utc.log`.
40+
Self-hosted runner log file names are formatted: `Runner_YYYY####-xxxxxx-utc.log` and `Worker_YYYY####-xxxxxx-utc.log`.
4141

4242
> [!NOTE]
4343
> Attach files to your support ticket by changing the file's extension to `.txt` or `.zip`. If you include textual data such as log or workflow file snippets inline in your ticket, ensure they are formatted correctly as Markdown code blocks. For more information about proper Markdown formatting, see [AUTOTITLE](/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code).

0 commit comments

Comments
 (0)