Repository navigation
chore(deps): bump source-map-js from 1.2.1 to 1.2.2 - #19
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2) --- updated-dependencies: - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…ot's own pull requests (#25) ## Summary This adds Dependabot for npm and GitHub Actions, keeps it away from `fixtures/`, and lets the DCO check pass on Dependabot's own pull requests without opening a hole in it. ## `.github/dependabot.yml` | | npm | GitHub Actions | |---|---|---| | Directory | `/` | `/` | | Schedule | weekly | weekly | | Grouping | one PR for minor + patch (`npm-minor-and-patch`); each major on its own | all in one group | | Excluded | `fixtures/**`, for version and security updates | — | | Commit prefix | `chore(deps)`, development dependencies included | `chore(deps)` | `fixtures/` is test data that is outdated and vulnerable on purpose; updating it would change what the tests assert. The file was checked against SchemaStore's `dependabot-2.0` schema (keys and enums). GitHub validates it again after merge, and the repository's Dependabot tab shows any errors. ## DCO and bots **Why #19 fails today.** Dependabot does sign off, but as `[email protected]`, while it authors commits as `49699333+dependabot[bot]@users.noreply.github.com`. The check rejects a sign-off in someone else's name. **The exemption.** It applies to `dependabot[bot]` and `github-actions[bot]`, and requires both: - the pull request was opened by that bot. That's `github.event.pull_request.user.login`, which GitHub sets and a contributor can't. The workflow passes it as `--pr-author`. - the commit is authored by that bot's noreply address. An author address on its own is just text in a commit: anyone can write one, so checking only that would let any pull request skip the sign-off. A person's commit pushed to a Dependabot pull request still needs the line. **Dry run** against #19's head, with the exact refs and arguments the workflow uses: ``` $ node scripts/dco.mjs refs/uptide/base refs/uptide/pr-head --base-name=origin/main 1 commits on refs/uptide/pr-head since origin/main ✗ 74704ad is signed off by [email protected] but authored by 49699333+dependabot[bot]@users.noreply.github.com: chore(deps): bump source-map-js from 1.2.1 to 1.2.2 exit 1 $ node scripts/dco.mjs refs/uptide/base refs/uptide/pr-head --base-name=origin/main --pr-author='dependabot[bot]' 1 commits on refs/uptide/pr-head since origin/main · 74704ad authored by dependabot[bot], exempt: chore(deps): bump source-map-js from 1.2.1 to 1.2.2 every commit is signed off exit 0 ``` GitHub's API reports #19's opener as `dependabot[bot]`, the value the workflow will receive. **Tests** (`packages/cli/src/dco.test.ts`): - A bot's own commits in the pull request it opened pass, and are listed as `exempt` (Dependabot and Actions). - The same Dependabot-authored commit fails when the pull request was opened by someone else, or by a different bot. - A person's unsigned commit in a Dependabot pull request fails. ## CONTRIBUTING.md - A new section, "Fixtures are pinned on purpose": Dependabot alerts on fixtures are dismissed as "Vulnerable code is not actually used", and a fixture changes only together with its tests. - One line in the DCO section on the bot exemption and its limits. ## Private-material check on Dependabot pull requests **Why it failed.** Dependabot-triggered runs get no repository secrets, so `No private material` exited 2 on every Dependabot PR (#19's `test` jobs). **The step now behaves as follows:** | Event | Denylist | Result | |---|---|---| | push to `main` | set | identifier scan (the latest `main` run: "744 tracked files, 13 private identifiers … clean") | | push to `main` | missing | exit 2 | | pull request opened by `dependabot[bot]` | missing | `::notice::`, document names only, exit 0 | | pull request opened by `dependabot[bot]` | set | identifier scan | | any other pull request from this repository | missing | exit 2 | | fork | missing | document names only (unchanged) | The gate is `github.event.pull_request.user.login`, the same as the DCO exemption. `public-tree.test.ts` runs the step's own shell block from `ci.yml` for each row. **Why the secret stays out of Dependabot secrets.** Dependency code runs in that job before the check (the linter from `node_modules`) and can reach later steps through `$GITHUB_ENV`. A bump is exactly the code nobody has reviewed yet, so it could read the list. CONTRIBUTING.md says so. Whatever a Dependabot PR brings is still scanned with the secret when it merges to `main`. ## Not in this PR (repository settings) - **Picking up the fix:** after this merges, #19 needs `@dependabot rebase`. A re-run alone reuses the old merge commit, and with it the old workflow. Tests: core 828 passed, cli 322 passed; `biome` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Lucas Braum <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
|
@dependabot rebase |
|
The dependabot.yml entry that created this PR has been deleted so this PR can't be rebased. Please close the PR so Dependabot can create a new one with the current dependabot.yml. |
|
Fixture pinned on purpose, see dependabot.yml |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps source-map-js from 1.2.1 to 1.2.2.
Release notes
Sourced from source-map-js's releases.
Changelog
Sourced from source-map-js's changelog.
Commits
0a1d3341.2.24c6fa26Update changelogcf76580Fix denial of service from malicious indexed source maps (CVE-2026-93749) (#79)7899a86Fix crash when executing browser with CSP script-src that don't permit unsafe...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.