From fd3bb9e37369a4db18926ea3fd9daa5057980195 Mon Sep 17 00:00:00 2001 From: Debug-Bot <224031901+SunShineHead@users.noreply.github.com> Date: Mon, 20 Jul 2026 12:42:00 +0800 Subject: [PATCH 1/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6142d1c11..7ab5ff4a8 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,4 @@ Code used to build and test the site as well as code samples on the site, if any This means you can use the content and code in this repository except for GitHub trademarks in your projects. When you contribute to this repository you are doing so under the above licenses. + \ No newline at end of file From 758f96c09f8d1c162a6c5c01ed8f652c96651784 Mon Sep 17 00:00:00 2001 From: "Wallace.H" <224031901+SunShineHead@users.noreply.github.com> Date: Sun, 8 Nov 2026 10:30:51 +0800 Subject: [PATCH 2/7] Create generator-generic-ossf-slsa3-publish.yml --- .../generator-generic-ossf-slsa3-publish.yml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/generator-generic-ossf-slsa3-publish.yml diff --git a/.github/workflows/generator-generic-ossf-slsa3-publish.yml b/.github/workflows/generator-generic-ossf-slsa3-publish.yml new file mode 100644 index 000000000..35c829b13 --- /dev/null +++ b/.github/workflows/generator-generic-ossf-slsa3-publish.yml @@ -0,0 +1,66 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow lets you generate SLSA provenance file for your project. +# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements +# The project is an initiative of the OpenSSF (openssf.org) and is developed at +# https://github.com/slsa-framework/slsa-github-generator. +# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier. +# For more information about SLSA and how it improves the supply-chain, visit slsa.dev. + +name: SLSA generic generator +on: + workflow_dispatch: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + outputs: + digests: ${{ steps.hash.outputs.digests }} + + steps: + - uses: actions/checkout@v4 + + # ======================================================== + # + # Step 1: Build your artifacts. + # + # ======================================================== + - name: Build artifacts + run: | + # These are some amazing artifacts. + echo "artifact1" > artifact1 + echo "artifact2" > artifact2 + + # ======================================================== + # + # Step 2: Add a step to generate the provenance subjects + # as shown below. Update the sha256 sum arguments + # to include all binaries that you generate + # provenance for. + # + # ======================================================== + - name: Generate subject for provenance + id: hash + run: | + set -euo pipefail + + # List the artifacts the provenance will refer to. + files=$(ls artifact*) + # Generate the subjects (base64 encoded). + echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}" + + provenance: + needs: [build] + permissions: + actions: read # To read the workflow path. + id-token: write # To sign the provenance. + contents: write # To add assets to a release. + uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0 + with: + base64-subjects: "${{ needs.build.outputs.digests }}" + upload-assets: true # Optional: Upload to a new release From 3dbd040871e28dd29ecf6cb29fa6a2f9b9ea1ffc Mon Sep 17 00:00:00 2001 From: "Wallace.H" <224031901+SunShineHead@users.noreply.github.com> Date: Sun, 8 Nov 2026 10:34:51 +0800 Subject: [PATCH 3/7] Create SECURITY.md for security policy and reporting Added a security policy document outlining supported versions and vulnerability reporting. --- SECURITY.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..034e84803 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. From a65cfe6f629d58dc7fa30125ef26e52f7c302795 Mon Sep 17 00:00:00 2001 From: Wallace Huang Jiajun <224031901+SunShineHead@users.noreply.github.com> Date: Fri, 20 Nov 2026 22:21:22 +0800 Subject: [PATCH 4/7] Repair Pages artifact upload and isolate deployment permissions --- .github/workflows/jekyll.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 8c9116eec..f5ca27c44 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -14,12 +14,10 @@ on: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read - pages: write - id-token: write # Allow one concurrent deployment concurrency: - group: "pages" + group: pages-${{ github.ref }} cancel-in-progress: true jobs: @@ -42,7 +40,8 @@ jobs: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Set up Pages id: pages - uses: actions/configure-pages@v2 + if: github.event_name != 'pull_request' + uses: actions/configure-pages@v5 - name: Build and test with Rake # Only run in pull requests if: github.event_name == 'pull_request' @@ -56,12 +55,16 @@ jobs: JEKYLL_ENV: production - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 + if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v3 # Deployment job deploy: # Only run on pushes to the default branch if: github.event_name == 'push' && github.ref == 'refs/heads/main' + permissions: + pages: write + id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} @@ -70,4 +73,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 From cac19c4350cc56fc0d1bc85b5f1d7eece5d34bdf Mon Sep 17 00:00:00 2001 From: Wallace Huang Jiajun <224031901+SunShineHead@users.noreply.github.com> Date: Fri, 20 Nov 2026 22:23:13 +0800 Subject: [PATCH 5/7] Run the legacy Ruby build on Ubuntu 22.04 --- .github/workflows/jekyll.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index f5ca27c44..53bd43481 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -23,7 +23,7 @@ concurrency: jobs: # Build job build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 From 66f9f0800a80d21b1fb0593d430c4e77f627ebd9 Mon Sep 17 00:00:00 2001 From: Wallace Huang Jiajun <224031901+SunShineHead@users.noreply.github.com> Date: Fri, 20 Nov 2026 22:24:47 +0800 Subject: [PATCH 6/7] Replace retired GitHub Learning Lab links --- redirects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redirects.md b/redirects.md index 2bcabfdb7..45b46a63e 100644 --- a/redirects.md +++ b/redirects.md @@ -180,5 +180,5 @@ redirect_from: - /on-demand/resources/learning-path/es/ - /on-demand/community/us-holidays/ - /on-demand/github-cli/98 -redirect_to: "https://lab.github.com" +redirect_to: "https://learn.github.com/skills" --- \ No newline at end of file From ded0e839b8f7172b70e1c31d5dd28f741d25251e Mon Sep 17 00:00:00 2001 From: Wallace Huang Jiajun <224031901+SunShineHead@users.noreply.github.com> Date: Fri, 20 Nov 2026 22:24:49 +0800 Subject: [PATCH 7/7] Replace retired GitHub Learning Lab links --- git-guides/git-overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-guides/git-overview.md b/git-guides/git-overview.md index f4322ac89..41286465d 100644 --- a/git-guides/git-overview.md +++ b/git-guides/git-overview.md @@ -88,7 +88,7 @@ If you're looking for more GitHub-specific technical guidance, check out [GitHub Depending on your operating system, you may already have [Git installed](/git-guides/install-git). But, getting started means more than having the software! To get started, it's important to know the basics of how Git works. You may choose to do the actual work within a terminal, an app like GitHub Desktop, or through GitHub.com. (*Note: while you can interact with Git through GitHub.com, your experience may be limited. Many local tools can give you access to the most widely used Git functionalities, though only the terminal will give you access to them all.*) -There are _many_ ways to use Git, which doesn't necessarily make it easier! But, the fundamental Git workflow has a few main steps. You can practice all of these in the [Introduction to GitHub Learning Lab course](https://lab.github.com/githubtraining/introduction-to-github). +There are _many_ ways to use Git, which doesn't necessarily make it easier! But, the fundamental Git workflow has a few main steps. You can practice all of these in the [Introduction to GitHub Skills exercise](https://github.com/skills/introduction-to-github). #### Create a branch @@ -136,6 +136,6 @@ If you choose not to merge the pull request, you can also close pull requests wi If you're wondering where Git ends and GitHub begins, you're not alone. They are tied closely together to make working with them both a seamless experience. While Git takes care of the underlying version control, GitHub is the collaboration platform built on top of it. GitHub is the place for pull requests, comments, reviews, integrated tests, and so much more. Most developers work locally to develop and use GitHub for collaboration. That ranges from using GitHub to host the shared remote repository to working with colleagues and capitalizing on features like protected branches, code review, GitHub Actions, and more. -The best place to practice using Git and GitHub is the [Introduction to GitHub Learning Lab course](https://lab.github.com/githubtraining/introduction-to-github). +The best place to practice using Git and GitHub is the [Introduction to GitHub Skills exercise](https://github.com/skills/introduction-to-github). If you already know Git and need to sign up for a GitHub account, head over to [github.com](https://github.com/).