René's URL Explorer Experiment


Title: Pin Semgrep CI image by digest and scope security-events to the upload job (CWE-829) by 07souravkunda · Pull Request #31 · browserstack/browserstack-local-php · GitHub

Open Graph Title: Pin Semgrep CI image by digest and scope security-events to the upload job (CWE-829) by 07souravkunda · Pull Request #31 · browserstack/browserstack-local-php

X Title: Pin Semgrep CI image by digest and scope security-events to the upload job (CWE-829) by 07souravkunda · Pull Request #31 · browserstack/browserstack-local-php

Description: What CI supply-chain hardening for the Semgrep workflow (CWE-829 — Inclusion of Functionality from Untrusted Control Sphere). Pin returntocorp/semgrep by immutable digest instead of the 1.166.0 tag. Move the SARIF upload into its own job, so security-events: write is no longer held by the job that runs the third-party container. Add a Dependabot config for github-actions so the action SHA pins don't go stale. Why .github/workflows/Semgrep.yml runs a third-party container image on a 0 6 * * * cron (plus every push/PR to master), in a job that has the repository checked out and holds security-events: write. A version tag is still mutable. 1.166.0 was a real improvement over :latest, but Docker Hub tags can be re-pointed at new content upstream, and the next scheduled run would pull and execute it with no PR gate. A digest cannot be re-pointed — updating it now requires a reviewable commit, which restores the audit trail. The container did not need security-events: write. Only the SARIF upload does. As written, a compromised image could forge or suppress entries in the repository's code-scanning dashboard. Splitting the jobs means the third-party code runs with contents: read and nothing else. Changes .github/workflows/Semgrep.yml - image: returntocorp/semgrep:1.166.0 + image: returntocorp/semgrep@sha256:c180f0c93a17b420c0af5006214a29d3c747c5459c732b740191adf657dd0068 The digest is the multi-arch OCI index that returntocorp/semgrep:1.166.0 resolves to today (pushed 2026-06-11) — confirmed independently against registry-1.docker.io (Docker-Content-Digest) and the Docker Hub v2 tag API. Same image, so no behavioural change; pinning the index rather than a per-arch manifest keeps the ref architecture-agnostic. The human-readable version and the command to refresh the pin are recorded in a comment next to it. Job layout: Job Runs third-party code Permissions semgrep (unchanged name, so any required check keeps matching) yes — the Semgrep container contents: read upload-sarif (new) no — first-party actions only contents: read, security-events: write The SARIF crosses between them as a workflow artifact. Both the artifact upload and the new job use if: always(), because semgrep ci exits non-zero whenever it has blocking findings — without that, the SARIF would stop reaching the dashboard on exactly the runs that matter. .github/dependabot.yml (new) — weekly github-actions updates, with a 7-day cooldown so a version isn't proposed the day it's published. Note that Dependabot cannot bump a workflow container: digest: its docker ecosystem only parses Dockerfiles, Kubernetes manifests and Helm values (dependabot-core#5819 is still open), and github-actions only covers uses: refs. That's why the manual refresh command is in the workflow comment — adopting Renovate, which does support workflow container digests, would automate it. Testing The workflow is exercised by this PR itself — the pull_request trigger runs the modified file, so the runs on this PR are the test. Run Head semgrep/ci upload-sarif (new) Overall 31599734585 1fc44b3 ❌ exit 1 — 1 finding (see below) ✅ failure 31599955720 8b08eb9 ✅ 0 findings ✅ ✅ success Digest pin confirmed from the runner log — docker pull returntocorp/semgrep@sha256:c180f0c9… → semgrep 1.166.0 on python 3.12.13, i.e. the digest resolves to exactly the version the tag named. The permission split is confirmed by the first run, which is the more informative one: the semgrep job failed and the SARIF still reached the dashboard, because the artifact upload and the new job both carry if: always(). That preserves the one behaviour that mattered about the old upload step. The first run's finding was in this PR's own new file, and it was a fair catch. Semgrep's p/default flagged package_managers.dependabot.dependabot-missing-cooldown on .github/dependabot.yml — a Dependabot with no cooldown proposes a version the instant it's published, which is the same window a hijacked release exploits. Fixed in 8b08eb9; the re-run is clean. Also checked locally before pushing: both files parse as YAML; every third-party ref is immutable (digest or full commit SHA, no @vN remaining); and asserted programmatically that no job both runs the container and holds security-events: write. The image digest was cross-checked against two independent sources (registry Docker-Content-Digest header and the Docker Hub v2 tag API). One thing the green here does not mean: on pull_request, semgrep ci is diff-aware and scanned only the 2 changed files. master's full scan still exits 1 with 5 pre-existing findings (e.g. run 31569942332) — untouched by this PR. Not in this PR A composer.lock was considered — the repo has none, so composer install resolves phpunit/phpunit: 4.6.* and its transitives fresh against Packagist on every clone. It turns out a lockfile cannot be committed here without making things worse. Composer 2.9 refuses to resolve that constraint at all under its default block-insecure audit, and forcing it (--no-security-blocking) produces a lock that pins 4 known advisories across 2 packages: phpunit/phpunit 4.6.10 — CVE-2026-24765 (high; fixed in 8.5.52+) symfony/yaml v3.4.47 — CVE-2026-45304, CVE-2026-45305, CVE-2026-45133 (low) phpunit/phpunit-mock-objects 2.3.8 — abandoned Committing that would require an audit.ignore for a high-severity CVE and would pin the vulnerability into the dependency graph. The advisory is in any case already visible without a lockfile — Dependabot alert #1 on the default branch is exactly GHSA-vvj3-c3rp-c85p, detected from composer.json. The real fix is to move off PHPUnit 4.6 — which means migrating tests/LocalTest.php off the PHPUnit_Framework_TestCase API — and that belongs in its own PR, separate from CI pinning. Nothing here ships to consumers: both the image and PHPUnit are CI/dev-only (Composer never installs a library's require-dev for downstream consumers). Worth noting for whoever picks that up: no CI job currently runs composer install at all. .travis.yml still references it, but Travis is no longer wired to this repo — recent commits report no Travis status contexts, only semgrep/ci and Analyze (actions).

Open Graph Description: What CI supply-chain hardening for the Semgrep workflow (CWE-829 — Inclusion of Functionality from Untrusted Control Sphere). Pin returntocorp/semgrep by immutable digest instead of the 1.166.0 ta...

X Description: What CI supply-chain hardening for the Semgrep workflow (CWE-829 — Inclusion of Functionality from Untrusted Control Sphere). Pin returntocorp/semgrep by immutable digest instead of the 1.166.0 ta...

Opengraph URL: https://github.com/browserstack/browserstack-local-php/pull/31

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:da2dcd37-a448-4b66-aa36-baaa823dfd76
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD122:31EE77:CECE3:1111EA:6B04B03B
html-safe-nonceddf433758b084479f671dcd4d5bae5885aa48867f6dd6db24e0d8ba90721acd9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTIyOjMxRUU3NzpDRUNFMzoxMTExRUE6NkIwNEIwM0IiLCJ2aXNpdG9yX2lkIjoiODcwNjcyNzYyNjU5MDY5NTQ4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd64a17767fad80ff611a13496635c62513e94570e40e7b3e8418f308acd6eb6d
hovercard-subject-tagpull_request:4262529762
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-local-php/pull/31/files
twitter:imagehttps://avatars.githubusercontent.com/u/50537259?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/50537259?s=400&v=4
og:image:altWhat CI supply-chain hardening for the Semgrep workflow (CWE-829 — Inclusion of Functionality from Untrusted Control Sphere). Pin returntocorp/semgrep by immutable digest instead of the 1.166.0 ta...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-php git https://github.com/browserstack/browserstack-local-php.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923086
octolytics-dimension-repository_nwobrowserstack/browserstack-local-php
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923086
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-php
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-php/pull/31/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-php%2Fpull%2F31%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-php%2Fpull%2F31%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-php
Reloadhttps://github.com/browserstack/browserstack-local-php/pull/31/files
Reloadhttps://github.com/browserstack/browserstack-local-php/pull/31/files
Reloadhttps://github.com/browserstack/browserstack-local-php/pull/31/files
browserstackhttps://github.com/browserstack
browserstack-local-phphttps://github.com/browserstack/browserstack-local-php
Codehttps://github.com/browserstack/browserstack-local-php
Issues3 (3)https://github.com/browserstack/browserstack-local-php/issues
Pull requests10 (10)https://github.com/browserstack/browserstack-local-php/pulls
Actionshttps://github.com/browserstack/browserstack-local-php/actions
Projectshttps://github.com/browserstack/browserstack-local-php/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-php/security
Insightshttps://github.com/browserstack/browserstack-local-php/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-php%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-php%2Fissues%2Fnew%2Fchoose
07souravkundahttps://github.com/07souravkunda
masterhttps://github.com/browserstack/browserstack-local-php/tree/master
locsec/WI-7132e51ehttps://github.com/browserstack/browserstack-local-php/tree/locsec/WI-7132e51e
Conversation 11 https://github.com/browserstack/browserstack-local-php/pull/31
Commits 3 https://github.com/browserstack/browserstack-local-php/pull/31/commits
Checks 5 https://github.com/browserstack/browserstack-local-php/pull/31/checks
Files changed https://github.com/browserstack/browserstack-local-php/pull/31/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
Pin Semgrep CI image by digest and scope security-events to the upload job (CWE-829) https://github.com/browserstack/browserstack-local-php/pull/31/files#top
Show all changes 3 commits https://github.com/browserstack/browserstack-local-php/pull/31/files
1fc44b3 Pin Semgrep CI image by digest and drop security-events from the cont… 07souravkunda Aug 12, 2026 https://github.com/browserstack/browserstack-local-php/pull/31/commits/1fc44b33cf3fff2fa255c967b38ea7ee97363f37
8b08eb9 Add a 7-day cooldown to the Dependabot config 07souravkunda Aug 12, 2026 https://github.com/browserstack/browserstack-local-php/pull/31/commits/8b08eb92f4af74894c81f60bb28bcc17f74836e5
233e0b0 Don't turn the upload job red when no SARIF was ever produced 07souravkunda Aug 12, 2026 https://github.com/browserstack/browserstack-local-php/pull/31/commits/233e0b041b4c8fc38520b39bbb6622cfebdaa23e
Clear filters https://github.com/browserstack/browserstack-local-php/pull/31/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
dependabot.yml https://github.com/browserstack/browserstack-local-php/pull/31/files#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28
Semgrep.yml https://github.com/browserstack/browserstack-local-php/pull/31/files#diff-93dcf82f9faa3ee9c420f45a76c781fc44eb797fec2f444ce1d899713d09d3b2
https://github.com/browserstack/browserstack-local-php/blob/master/CODEOWNERS#L1
.github/dependabot.ymlhttps://github.com/browserstack/browserstack-local-php/pull/31/files#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28
View file https://github.com/browserstack/browserstack-local-php/blob/233e0b041b4c8fc38520b39bbb6622cfebdaa23e/.github/dependabot.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-php/pull/31/{{ revealButtonHref }}
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
https://github.com/browserstack/browserstack-local-php/blob/master/CODEOWNERS#L1
.github/workflows/Semgrep.ymlhttps://github.com/browserstack/browserstack-local-php/pull/31/files#diff-93dcf82f9faa3ee9c420f45a76c781fc44eb797fec2f444ce1d899713d09d3b2
View file https://github.com/browserstack/browserstack-local-php/blob/233e0b041b4c8fc38520b39bbb6622cfebdaa23e/.github/workflows/Semgrep.yml
Open in desktop https://desktop.github.com
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767289989
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
CVE-2026-24765https://github.com/advisories/GHSA-vvj3-c3rp-c85p
Pin Semgrep CI image by digest and scope security-events to the upload job (CWE-829) #31https://github.com/browserstack/browserstack-local-php/pull/31
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767466215
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#31https://github.com/browserstack/browserstack-local-php/pull/31
CVE-2026-24765https://github.com/advisories/GHSA-vvj3-c3rp-c85p
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-php/pull/31/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-php/pull/31/files#diff-93dcf82f9faa3ee9c420f45a76c781fc44eb797fec2f444ce1d899713d09d3b2
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767297389
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767469020
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
https://github.com/browserstack/browserstack-local-php/pull/31/files#diff-93dcf82f9faa3ee9c420f45a76c781fc44eb797fec2f444ce1d899713d09d3b2
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767299787
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767472162
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
07souravkundahttps://github.com/07souravkunda
Aug 12, 2026https://github.com/browserstack/browserstack-local-php/pull/31/files#r3767513190
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
31607926461https://github.com/browserstack/browserstack-local-php/actions/runs/31607926461
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/31/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.