From e61067669aded595f5ee1241347510028cd9c5a5 Mon Sep 17 00:00:00 2001 From: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:51:01 -0500 Subject: [PATCH] [improve](sec): harden-runner@v2.10.3 fixes vulnerability (#648) * [improve](sec): harden-runner@v2.10.3 fixes vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [improve](sec): step-security/harden-runner@v2.10.3 fixed vulnerability Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> * [docs](doc): version file Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> --------- Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> --- .github/workflows/ci.yaml | 2 +- .github/workflows/dependency-review.yml | 2 +- .github/workflows/jekyll.yml | 2 +- .github/workflows/permission_advisor.yml | 4 ++-- .github/workflows/readme-checker.yml | 4 ++-- .github/workflows/release-please.yml | 20 ++++++++++---------- .github/workflows/release.yml | 2 +- .github/workflows/scorecard.yml | 6 +++--- .github/workflows/semantic-release.yml | 10 +++++----- .github/workflows/test.yml | 6 +++--- .github/workflows/workflows.md | 16 ++++++++-------- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cb39f627..88b286ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: JEKYLL_VERSION: ${{ matrix.jekyll }} steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + uses: step-security/harden-runner@v2.10.3 with: egress-policy: audit diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 973fc20f..c7cc5a48 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index ca672334..39028895 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -74,7 +74,7 @@ jobs: needs: build steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block diff --git a/.github/workflows/permission_advisor.yml b/.github/workflows/permission_advisor.yml index 8da1c460..5d59b538 100644 --- a/.github/workflows/permission_advisor.yml +++ b/.github/workflows/permission_advisor.yml @@ -22,14 +22,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block allowed-endpoints: > github.com:443 - - uses: GitHubSecurityLab/actions-permissions/advisor@aecef454fc649f347a1796348ded6c5d21a14d87 # v1.0.2-beta4 + - uses: GitHubSecurityLab/actions-permissions/advisor@v1.0.2-beta5 with: name: ${{ inputs.name }} count: ${{ inputs.count }} diff --git a/.github/workflows/readme-checker.yml b/.github/workflows/readme-checker.yml index 087d4dec..04ec02bb 100644 --- a/.github/workflows/readme-checker.yml +++ b/.github/workflows/readme-checker.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block @@ -19,7 +19,7 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Checking markdown - uses: DavidAnson/markdownlint-cli2-action@eb5ca3ab411449c66620fe7f1b3c9e10547144b0 # v18.0.0 + uses: DavidAnson/markdownlint-cli2-action@v19.0.0 with: globs: | *.md diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 2973d7bd..51fe907f 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,21 +13,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block allowed-endpoints: > api.github.com:443 - - uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3 - with: - contents: write - pull-requests: write - # this assumes that you have created a personal access token - # (PAT) and configured it as a GitHub action secret named - # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). - token: ${{ secrets.GITHUB_TOKEN }} + - uses: step-security/harden-runner@v2.10.3 # v4.1.3 + with: + contents: write + pull-requests: write + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ secrets.GITHUB_TOKEN }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options - release-type: simple + release-type: simple diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a5ade92..311fd4be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index c81662b1..ad1a4948 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -16,7 +16,7 @@ jobs: id-token: write steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block @@ -44,12 +44,12 @@ jobs: results_format: sarif publish_results: true - name: Upload artifact - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@v4.6.0 with: name: SARIF file path: results.sarif retention-days: 5 - name: Upload to code-scanning - uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0 + uses: github/codeql-action/upload-sarif@v2.20.1 with: sarif_file: results.sarif diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index b7e17033..05ba9676 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -41,17 +41,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.0 + uses: step-security/harden-runner@v2.10.3 with: disable-sudo: true egress-policy: block allowed-endpoints: > api.github.com:443 - - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: # Type abbreviation comments: # feat -> feature # blog, info (2023-08-07 RalphHightower) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8eb30804..9862ef8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + uses: step-security/harden-runner@v2.10.3 with: egress-policy: audit @@ -57,7 +57,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + uses: step-security/harden-runner@v2.10.3 with: egress-policy: audit @@ -84,7 +84,7 @@ jobs: if: ${{ !cancelled() }} steps: - name: Harden Runner - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + uses: step-security/harden-runner@v2.10.3 with: egress-policy: audit diff --git a/.github/workflows/workflows.md b/.github/workflows/workflows.md index c3d35ab9..3477aab0 100644 --- a/.github/workflows/workflows.md +++ b/.github/workflows/workflows.md @@ -4,11 +4,11 @@ title: GitHub Workflows #permalink: /Astronomy/ --- -## Revision Date: 2024-12-27 2:31 PM +## Revision Date: 2025-01-10 8:55 PM | action | date | github | |---|---|---| -| DavidAnson/markdownlint-cli2-action@v18.0.0 | Nov 14, 2024 |[DavidAnson/markdownlint-cli2-action: A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMark files with the markdownlint library](https://github.com/DavidAnson/markdownlint-cli2-action) | +| DavidAnson/markdownlint-cli2-action@v19.0.0 | Dec 28, 2024 |[DavidAnson/markdownlint-cli2-action: A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMark files with the markdownlint library](https://github.com/DavidAnson/markdownlint-cli2-action) | | GitHubSecurityLab/actions-permissions/advisor@v1.0.2-beta5 | Dec 19, 2024 | [GitHubSecurityLab/actions-permissions: GitHub token permissions Monitor and Advisor actions](https://github.com/GitHubSecurityLab/actions-permissions) | | actions/checkout@v4.2.2 | Oct 23, 2024 | [actions/checkout: Action for checking out a repo](https://github.com/actions/checkout) | | actions/configure-pages@v5.0.0 | Mar 29, 2024 | [actions/configure-pages: An action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.](https://github.com/actions/configure-pages) | @@ -16,16 +16,16 @@ title: GitHub Workflows | actions/deploy-pages@4.0.5 | Mar 18, 2024 | [actions/deploy-pages: GitHub Action to publish artifacts to GitHub Pages for deployments](https://github.com/actions/deploy-pages) | | actions/jekyll-build-pages@v1.0.13 | Aug 6, 2024 | [actions/jekyll-build-pages: A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages.](https://github.com/actions/jekyll-build-pages) | | actions/setup-node@v4.1.0 | Oct 24, 2024 | [actions/setup-node: Set up your GitHub Actions workflow with a specific version of node.js](https://github.com/actions/setup-node) | -| actions/upload-artifact@v4.5.0 | Dec 19, 2024 | [actions/upload-artifact](https://github.com/actions/upload-artifact) | +| actions/upload-artifact@v4.6.0 | Jan 9, 2025 | [actions/upload-artifact](https://github.com/actions/upload-artifact) | | actions/upload-pages-artifact@v3.0.1 | Feb 7, 2024 | [actions/upload-pages-artifact: A composite action for packaging and uploading an artifact that can be deployed to GitHub Pages.](https://github.com/actions/upload-pages-artifact) | | amannn/action-semantic-pull-request@v5.5.3 | Jun 28, 2024 | [amannn/action-semantic-pull-request: A GitHub Action that ensures that your PR title matches the Conventional Commits spec](https://github.com/amannn/action-semantic-pull-request) | -| github/codeql-action/analyze@v2.20.0 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | -| github/codeql-action/autobuild@v2.20.0 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | -| github/codeql-action/init@v2.20.0 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | -| github/codeql-action/upload-sarif@v2.20.0 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | +| github/codeql-action/analyze@v2.20.1 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | +| github/codeql-action/autobuild@v2.20.1 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | +| github/codeql-action/init@v2.20.01 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | +| github/codeql-action/upload-sarif@v2.20.1 | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) | | googleapis/release-please-action@4.1.3 | Jun 10, 2024 | [googleapis/release-please-action: automated releases based on conventional commits](https://github.com/googleapis/release-please-action) | googleapis/release-please@v16.15.0 | Dec 2, 2024 | [googleapis/release-please: generate release PRs based on the conventionalcommits.org spec](https://github.com/googleapis/release-please) | | lowlighter/metrics@3.34 | Sep 12, 2023 | [lowlighter/metrics: 📊 An infographics generator with 30+ plugins and 300+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!](https://github.com/lowlighter/metrics) | | ossf/scorecard-action@v2.4.0 | Jul 26, 2024 | [ossf/scorecard-action: Official GitHub Action for OpenSSF Scorecard.](https://github.com/ossf/scorecard-action) | -| ruby/setup-ruby@v1.206.0 | Dec 26, 2024 | [ruby/setup-ruby: An action to download a prebuilt Ruby and add it to the PATH in 5 seconds](https://github.com/ruby/setup-ruby) | +| ruby/setup-ruby@v1.207.0 | Dec 30, 2024 | [ruby/setup-ruby: An action to download a prebuilt Ruby and add it to the PATH in 5 seconds](https://github.com/ruby/setup-ruby) | | step-security/harden-runner@v2.10.2 | Nov 18, 2024 | [step-security/harden-runner: Network egress filtering and runtime security for GitHub-hosted and self-hosted runners](https://github.com/step-security/harden-runner) |