Skip to content

[FSSDK-13479] Remove obsolete SourceClear workflow - #673

Open
Esra Kartal (esrakartalOpt) wants to merge 1 commit into
masterfrom
esra/fssdk-13479-fix-arnica-findings
Open

Esra Kartal (esrakartalOpt) wants to merge 1 commit into
masterfrom
esra/fssdk-13479-fix-arnica-findings

Conversation

@esrakartalOpt

Copy link
Copy Markdown
Contributor

Summary

  • Delete .github/workflows/source_clear_cron.yml.
  • This workflow ran the Veracode SourceClear scan with curl -sSL https://download.sourceclear.com/ci.sh | bash -s - scan, which pipes a remote script straight into bash with SRCCLR_API_TOKEN in the environment (Arnica CWE-506 "Potentially malicious curl execution in GitHub workflows", Critical).
  • The company no longer uses Veracode (dependency scanning moved to Arnica), so the scan is obsolete. I removed the workflow instead of hardening it. No other file in the repo references SourceClear, Veracode or SRCCLR.

Follow-ups outside this PR

  • Delete the now-unused SRCCLR_API_TOKEN secret from this repo's Actions secrets.
  • If branch protection lists "Source clear" as a required status check, remove it.
  • Arnica should stop reporting the finding once this is merged and re-scanned.

Test plan

  • The remaining workflow files still parse as valid YAML.
  • No other workflow, doc or config references the deleted file or the secret (searched the repo for source.?clear, srcclr and veracode).
  • The deleted workflow ran on pushes to master and weekly, so nothing else depends on its result.

Issues

  • FSSDK-13479

🤖 Generated with Claude Code

Remove source_clear_cron.yml. It ran the Veracode SourceClear scan by piping
curl straight into bash (Arnica CWE-506 finding). The company no longer uses
Veracode (moved to Arnica), so the scan is obsolete and the workflow is deleted
rather than hardened.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 93.964%. remained the same — esra/fssdk-13479-fix-arnica-findings into master

@alexjoeyyong Alex Yong (alexjoeyyong) 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.

Verdict: approve. Posted as a comment review.

CI: all checks pass (build on Xcode 16 and 27, unit tests on iOS and tvOS, api_breaking_changes, markdown lint, compat suite, coverage unchanged at 93.964%).

Checked myself:

  • The diff only deletes .github/workflows/source_clear_cron.yml.
  • Nothing at the PR head references SourceClear, srcclr or Veracode.
  • "Source clear" is not a required status check on master, whether through branch protection or a ruleset, so merging won't strand anything. The scan is also already dead: its scheduled runs failed on Nov 8, 15 and 22.
  • Removing it clears the CWE-506 curl | bash with SRCCLR_API_TOKEN in the environment. Deleting beats hardening for a scanner nobody uses.

Nits

  • Delete the SRCCLR_API_TOKEN secret once this merges (the PR lists it as a follow-up; don't let it slip).
  • The claim that Arnica now covers dependency scanning is asserted, not shown. If someone has confirmed it covers the Swift manifests, it's worth a line in the description.

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.

Looks good to me. We can remove sc workflow.

SwiftLint isn't a dependency of the SDK. It's a CI-only tool. It isn't in Package.swift, isn't shipped to users, and isn't linked into the code.

This branch has not been deployed

No deployments
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.

4 participants