Skip to content

Add Socket Basics security scanning workflow - #135

Merged
kaankacar merged 1 commit into
stellar:mainfrom
kanwalpreetd:main
Oct 12, 2026
Merged

kaankacar merged 1 commit into
stellar:mainfrom
kanwalpreetd:main

Conversation

@kanwalpreetd

@kanwalpreetd kanwalpreetd commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

@kanwalpreetd
kanwalpreetd force-pushed the main branch 4 times, most recently from 86d94d2 to 00d47ef Compare September 26, 2026 01:30
@kanwalpreetd
kanwalpreetd marked this pull request as ready for review September 28, 2026 12:40
Copilot AI lite review requested due to automatic review settings September 28, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The workflow advertises Trivy scanning while the configuration disables it, making the stated coverage inaccurate.

Review effort: Lite
Findings: 1 Medium severity

Open (1)

Comment thread .socket-basics.json
Copilot AI review requested due to automatic review settings September 29, 2026 07:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings September 29, 2026 08:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Preserve unexpected non-zero scan exits or validate explicit scan completion before reporting success.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Comment thread .github/workflows/socket-basics.yml Outdated
Copilot AI lite review requested due to automatic review settings September 29, 2026 22:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The workflow has critical and moderate issues in scan-result validation that can misreport failures or clean scans.

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)

Comment thread .github/workflows/socket-basics.yml Outdated
Copilot AI lite review requested due to automatic review settings September 29, 2026 23:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The workflow can mask high/critical findings and report success when result submission is not verified.

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)
Resolved since last review (1)

Comment thread .github/workflows/socket-basics.yml Outdated
Copilot AI lite review requested due to automatic review settings September 30, 2026 00:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI lite review requested due to automatic review settings October 2, 2026 01:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Runs SAST through OpenGrep, secret scanning through TruffleHog, and
Dockerfile misconfiguration scanning through Trivy, submitting results
to Socket.dev.

  .github/workflows/socket-basics.yml  scheduled weekly + manual dispatch
  .socket-basics.json                  scanner configuration
  .semgrepignore                       SAST path exclusions
  .trivyignore                         Dockerfile lint rules with no
                                       security dimension (only present
                                       where the repo has a Dockerfile)

Separate from socket-scan.yml, which covers dependency CVEs and Tier 1
reachability.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 2, 2026 02:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: None

Resolved since last review (3)

@kanwalpreetd
kanwalpreetd requested a review from kaankacar October 2, 2026 19:49
@stellar-triage-bot

Copy link
Copy Markdown
Contributor

🤖 Automated message from Kaan's Automated Triage Bot.

Thanks, Kanwalpreet. The final workflow is much tighter than the first rounds. It is clean on the points I can check:

  • Triggers are schedule and workflow_dispatch only, so fork PR code never runs with the Socket token.
  • permissions: contents: read and persist-credentials: false keep the GitHub token out of the container.
  • actions/checkout@df4cb1c is the real v6.0.3 commit. It is the same pin as socket-scan.yml.
  • The image digest sha256:d463bae… resolves on ghcr.io and is the 3.1.0 tag. The newest tag is 3.4.0.
  • Every key in .socket-basics.json matches upstream docs/parameters.md. All five sast_ignore_overrides paths exist on main.
  • Copilot's four findings are resolved at this head. The header no longer claims Trivy, and the script no longer rewrites the exit code.

One small suggestion: add # 3.1.0 next to the digest, so a reader knows the version without a registry lookup.

This PR adds a workflow, so I do not merge it. @kaankacar the decision is yours: add a second Socket workflow (SAST and secret scanning) next to socket-scan.yml. It sends the repo contents and the org SOCKET_SECURITY_API_TOKEN to the pinned 3.1.0 container, and it suppresses five SAST rules. The first real run happens only after merge, on Saturday's cron or a manual dispatch.

@kaankacar
kaankacar merged commit 9e71e10 into stellar:main Oct 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants