Skip to content

chore(deps): bump source-map-js from 1.2.1 to 1.2.2 - #19

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/source-map-js-1.2.2
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/source-map-js-1.2.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 6, 2026

Copy link
Copy Markdown
Contributor

Bumps source-map-js from 1.2.1 to 1.2.2.

Release notes

Sourced from source-map-js's releases.

v1.2.2

Changelog

Sourced from source-map-js's changelog.

1.2.2

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 6, 2026
lucasbraum added a commit that referenced this pull request Oct 6, 2026
…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]>
@lucasbraum

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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.

@lucasbraum

Copy link
Copy Markdown
Collaborator

Fixture pinned on purpose, see dependabot.yml

@lucasbraum lucasbraum closed this Oct 6, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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 @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/source-map-js-1.2.2 branch October 6, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant