-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): repair 4 soft-gate workflow validation errors (FR-001) #640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
6cbb81e
f485d8e
0826a4a
9be992c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,8 @@ jobs: | |
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| - uses: github/codeql-action/init-action@v4 | ||
| - uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: [typescript, python, rust, go] | ||
| - uses: github/codeql-action/autobuild | ||
| - uses: github/codeql-action/analyze | ||
| - uses: github/codeql-action/autobuild@v4 | ||
| - uses: github/codeql-action/analyze@v4 | ||
|
Comment on lines
+12
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
file=.github/workflows/sast.yml
if rg -n 'github/codeql-action/(init|autobuild|analyze)`@v`[0-9]+([[:space:]]|$)' "$file"; then
echo "Mutable CodeQL action references found." >&2
exit 1
fi
for action in init autobuild analyze; do
rg -n "github/codeql-action/${action}@[0-9a-f]{40}([[:space:]]|$)" "$file"
doneRepository: KooshaPari/sharecli Length of output: 343 🌐 Web query:
💡 Result: As of August 5, 2026, the current release of the github/codeql-action is v4.37.6 [1]. The commit SHA associated with the v4.37.6 release tag is 5595ccaf912efad79be6eef63a5619ff05969be3 [2]. Citations:
🌐 Web query:
💡 Result: The identifier 5595ccaf912efad79be6eef63a5619ff05969be3 corresponds to a specific commit hash within the official GitHub CodeQL Action repository (github/codeql-action) [1]. This commit is associated with the release of version v4.37.6 of the CodeQL Action [1][2]. The CodeQL Action is a GitHub Action used for running semantic code analysis to identify security vulnerabilities [3]. Version v4.37.6 is part of the v4 release line, which is built on the Node.js 24 runtime [3][4]. GitHub currently recommends users migrate to v4, as v3 is scheduled for deprecation in December 2026 [5][4]. Citations:
Security Misconfiguration (CWE-829): Inclusion of Functionality from Untrusted Control Sphere Pin CodeQL actions to immutable commit SHAs.
🧰 Tools🪛 actionlint (1.7.12)[error] 14-14: expected scalar node for string value but found sequence node with "!!seq" tag (syntax-check) 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,9 +13,6 @@ permissions: | |
| contents: read | ||
| actions: read | ||
|
|
||
| env: | ||
|
|
||
|
|
||
| jobs: | ||
| # Secret Scanning | ||
| secrets: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,10 +7,9 @@ pull_request_rules: | |||||||||||||||||||||||
| conditions: | ||||||||||||||||||||||||
| - "#review-requested=0" | ||||||||||||||||||||||||
| - "#approved-reviews-by>=1" | ||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING: Missing The auto-merge rule no longer blocks merging when review requests are pending. A PR can now auto-merge even after someone requests a review from another person, potentially merging unreviewed code. Reply with |
||||||||||||||||||||||||
| - check-success=ci | ||||||||||||||||||||||||
| - check-success=lint | ||||||||||||||||||||||||
| - check-success=typecheck | ||||||||||||||||||||||||
| - check-success=test | ||||||||||||||||||||||||
| - check-success=ci / lint | ||||||||||||||||||||||||
| - check-success=ci / test | ||||||||||||||||||||||||
| - check-success=coverage | ||||||||||||||||||||||||
| - -conflict | ||||||||||||||||||||||||
| - -closed | ||||||||||||||||||||||||
| actions: | ||||||||||||||||||||||||
|
|
@@ -20,14 +19,14 @@ pull_request_rules: | |||||||||||||||||||||||
| {{ title }} (#{{ number }}) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Co-authored-by: {{ author }} | ||||||||||||||||||||||||
| post_merge: | ||||||||||||||||||||||||
| action: close | ||||||||||||||||||||||||
| delete_head_branch: {} | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| # Auto-merge dependabot/Renovate PRs when CI passes | ||||||||||||||||||||||||
| - name: Auto-merge dependency updates | ||||||||||||||||||||||||
| conditions: | ||||||||||||||||||||||||
| - author=dependabot[bot] | renovate[bot] | ||||||||||||||||||||||||
| - check-success=ci | ||||||||||||||||||||||||
| - author~=^(dependabot\[bot\]|renovate\[bot\])$ | ||||||||||||||||||||||||
| - check-success=ci / lint | ||||||||||||||||||||||||
| - check-success=ci / test | ||||||||||||||||||||||||
| - -conflict | ||||||||||||||||||||||||
| - -closed | ||||||||||||||||||||||||
| actions: | ||||||||||||||||||||||||
|
|
@@ -37,20 +36,21 @@ pull_request_rules: | |||||||||||||||||||||||
| {{ title }} (#{{ number }}) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Co-authored-by: {{ author }} | ||||||||||||||||||||||||
| post_merge: | ||||||||||||||||||||||||
| action: close | ||||||||||||||||||||||||
| delete_head_branch: {} | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| # Auto-merge bot PRs (CI configs, formatting) when CI passes | ||||||||||||||||||||||||
| - name: Auto-merge bot housekeeping PRs | ||||||||||||||||||||||||
| conditions: | ||||||||||||||||||||||||
| - author=trunk-io[bot] | mergify[bot] | github-actions[bot] | ||||||||||||||||||||||||
| - check-success=ci | ||||||||||||||||||||||||
| - check-success=lint | ||||||||||||||||||||||||
| - author~=^(trunk-io\[bot\]|mergify\[bot\]|github-actions\[bot\])$ | ||||||||||||||||||||||||
| - check-success=ci / lint | ||||||||||||||||||||||||
| - check-success=ci / test | ||||||||||||||||||||||||
| - -conflict | ||||||||||||||||||||||||
| - -closed | ||||||||||||||||||||||||
| actions: | ||||||||||||||||||||||||
| merge: | ||||||||||||||||||||||||
| method: squash | ||||||||||||||||||||||||
| commit_message_template: | | ||||||||||||||||||||||||
| {{ title }} (#{{ number }}) | ||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf 'Repository files matching .mergify.yml:\n'
git ls-files | grep -F '.mergify.yml' || true
if [ -f .mergify.yml ]; then
printf '\n.mergify.yml lines 1-140:\n'
cat -n .mergify.yml | sed -n '1,140p'
fi
printf '\nSearch for delete_head_branch and merge action definitions in Mergify config files:\n'
rg -n "delete_head_branch|actions:|merge:|delete_head_branch" .mergify.yml 2>/dev/null || trueRepository: KooshaPari/sharecli Length of output: 4885 Add head-branch deletion to the housekeeping rule. The automatic-merge rules already delete head branches, but the bot housekeeping rule only defines Proposed fix actions:
merge:
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
+ delete_head_branch: {}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| # Add reviewers based on changed paths | ||||||||||||||||||||||||
| - name: Request review from team | ||||||||||||||||||||||||
|
|
@@ -128,9 +128,9 @@ pull_request_rules: | |||||||||||||||||||||||
| conditions: | ||||||||||||||||||||||||
| - -closed | ||||||||||||||||||||||||
| - -draft | ||||||||||||||||||||||||
| - check-success=ci | ||||||||||||||||||||||||
| - check-success=lint | ||||||||||||||||||||||||
| - check-success=test | ||||||||||||||||||||||||
| - check-success=ci / lint | ||||||||||||||||||||||||
| - check-success=ci / test | ||||||||||||||||||||||||
| - check-success=coverage | ||||||||||||||||||||||||
| - "#approved-reviews-by>=1" | ||||||||||||||||||||||||
| actions: | ||||||||||||||||||||||||
| label: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: KooshaPari/sharecli
Length of output: 386
Use a scalar for the
languagesinput.languages: [typescript, python, rust, go]is invalid because the CodeQL initialization input expects a scalar. The workflow will fail validation unless this is rendered as a comma-separated string instead.Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.12)
[error] 14-14: expected scalar node for string value but found sequence node with "!!seq" tag
(syntax-check)
🤖 Prompt for AI Agents
Source: Linters/SAST tools