Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true

- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -78,7 +78,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
uses: github/codeql-action/autobuild@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -91,6 +91,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/label-pr-size.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
runs-on: ubuntu-latest

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] Mutable tag pinning

The action conforma/pr-size-label-action@v1.2.0 is pinned to a mutable tag rather than a commit SHA. Every other action updated in this PR is pinned to a full commit SHA with a version comment. This workflow uses pull_request_target which runs with write permissions (pull-requests: write, issues: write), making supply-chain integrity especially important. While the action is in the same GitHub organization (conforma), the inconsistency with the pinning strategy represents an avoidable risk.

Suggested fix: Pin to the commit SHA: conforma/pr-size-label-action@9bff907 # v1.2.0, consistent with every other action reference in this repository.

steps:
- name: Label PR by size
uses: conforma/pr-size-label-action@v1.0.0
uses: conforma/pr-size-label-action@v1.2.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] supply-chain

conforma/pr-size-label-action is referenced by a mutable tag (v1.2.0) rather than a pinned commit SHA. This workflow runs on pull_request_target with pull-requests: write and issues: write permissions, making tag mutability a meaningful supply-chain risk.

Suggested fix: Pin to a specific commit SHA corresponding to v1.2.0, following the established pattern: uses: conforma/pr-size-label-action@ # v1.2.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] pattern-inconsistency

Every other third-party action in this repository uses SHA pinning with version comments (@ # ), but conforma/pr-size-label-action uses a mutable tag reference (@v1.2.0). This is a pre-existing inconsistency that this PR perpetuates.

Suggested fix: Align with the repository convention: uses: conforma/pr-size-label-action@<full-sha-of-v1.2.0> # v1.2.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] supply-chain pinning

The conforma/pr-size-label-action is referenced by mutable tag (v1.2.0) instead of a SHA pin. This action runs on pull_request_target with pull-requests:write and issues:write permissions, meaning a compromised or force-pushed tag could execute arbitrary code with write access to the repository. The pull_request_target trigger combined with write permissions makes this an elevated-risk combination.

Suggested fix: Pin conforma/pr-size-label-action to the full commit SHA for v1.2.0. Consider also pinning other mutable-referenced actions for consistency.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] supply-chain

conforma/pr-size-label-action uses a mutable version tag (v1.2.0) instead of a SHA pin, inconsistent with the pinning strategy used for all other actions in these workflows. Pre-existing issue, not introduced by this PR.

Suggested fix: Pin to the full commit SHA for v1.2.0 with a version comment, matching the pattern used by other actions (e.g., actions/setup-go@924ae3a1... # v6.5.0).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] pin-integrity

The action conforma/pr-size-label-action@v1.2.0 is pinned to a mutable version tag rather than a full commit SHA. Every other action across all six workflow files uses SHA pinning with a version comment. A mutable tag can be force-pushed, silently replacing the action code. This workflow runs on pull_request_target with pull-requests: write and issues: write permissions, so a compromised action would execute with elevated write permissions. The risk is partially mitigated by the action being owned by the same conforma organization.

Suggested fix: Pin to a full 40-character commit SHA with a version comment: uses: conforma/pr-size-label-action@ # v1.2.0. Determine the SHA by checking the v1.2.0 tag on GitHub.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] supply-chain

conforma/pr-size-label-action uses a mutable tag reference (@v1.2.0) instead of a SHA pin, unlike all other actions in the repository. Tag references can be repointed, posing a supply-chain integrity risk. This is a pre-existing pattern not introduced by this PR.

Suggested fix: Pin to the commit SHA for v1.2.0 with a version comment (e.g., conforma/pr-size-label-action@ # v1.2.0), matching the convention used by all other actions in this repository.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] mutable action reference

The action conforma/pr-size-label-action@v1.2.0 is pinned to a mutable version tag rather than an immutable commit SHA. All other actions in this repository (23 references across workflow files) use SHA pinning with version comments. A mutable tag can be force-pushed to point at arbitrary code. The risk is partially mitigated by this being an org-internal action (same conforma organization) and having limited permissions (only pull-requests: write and issues: write).

Suggested fix: Pin conforma/pr-size-label-action to the full commit SHA of the v1.2.0 release and add a version comment (e.g., conforma/pr-size-label-action@ # v1.2.0). Also consider configuring Renovate to resolve SHAs for this action in future updates.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] action-pinning

The conforma/pr-size-label-action action is pinned to a mutable tag (v1.2.0) rather than a full commit SHA hash. This workflow runs on pull_request_target, which grants write tokens and access to repository secrets. This is a pre-existing pattern for conforma-organization-owned actions (the previous version v1.0.0 was also tag-pinned), not a regression introduced by this PR.

Suggested fix: Consider SHA-pinning organization-owned actions for defense-in-depth, especially in workflows using pull_request_target.

6 changes: 3 additions & 3 deletions .github/workflows/pre-merge-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Go environment
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
cache: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/push-bundles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
# So we can see in which commit a bundle's content was
# most recently updated
fetch-depth: 0

- name: Setup Go environment
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
cache: true
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0

Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true
Expand Down Expand Up @@ -138,13 +138,13 @@ jobs:
steps:

- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true

- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0

Expand All @@ -159,7 +159,7 @@ jobs:
git push -f --tags

- name: Create a release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
with:
name: ${{ needs.get_info.outputs.next_version }}
tag_name: ${{ needs.get_info.outputs.next_version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
disable-telemetry: true

- name: "Checkout code"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false

Expand Down Expand Up @@ -89,6 +89,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
sarif_file: results.sarif
Loading