Skip to content

chore(security): broaden secret exclusions, move publish PAT out of the repo - #18

Open
jpantsjoha wants to merge 1 commit into
mainfrom
chore/secret-hygiene
Open

chore(security): broaden secret exclusions, move publish PAT out of the repo#18
jpantsjoha wants to merge 1 commit into
mainfrom
chore/secret-hygiene

Conversation

@jpantsjoha

Copy link
Copy Markdown
Owner

A .env holding VSCODE_PUBLISH_PAT was in the project directory.

Verified never committed on any branch, and already gitignored — but this repo is public, and a repo-local credential is one git add -A away from being in it.

  • Token moved to the macOS keychain (vsce-publish-pat), mode-600 fallback at ~/.config/vscode-publishing/publish.env. Project copy deleted.
  • Ignore rules widened: .env.*, *.pat, *.token, secrets.json, .npmrc — with .env.example still allowed. Every pattern verified with git check-ignore.

No code change; .gitignore only.

…ut of the repo

A `.env` holding VSCODE_PUBLISH_PAT was sitting in the project directory. Verified
it was never committed on any branch and was already ignored — but this repository
is public, and a repo-local credential is one `git add -A` from being in it.

The token now lives in the macOS keychain (`vsce-publish-pat`) with a mode-600
fallback at ~/.config/vscode-publishing/publish.env. The project copy is gone.

Ignore rules widened from three literal .env variants to `.env.*`, `*.pat`,
`*.token`, `secrets.json` and `.npmrc`, with `.env.example` still permitted so a
template can be committed. Each pattern verified with `git check-ignore`.

Publishing procedure now lives in a global skill rather than this repo, so it
applies to every extension: ~/.claude/skills/vscode-extension-publisher.
@jpantsjoha
jpantsjoha force-pushed the chore/secret-hygiene branch 2 times, most recently from 2219bd1 to f07ecf0 Compare August 7, 2026 15:06
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

✅ All checks passed! Ready for review.

1 similar comment
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

✅ All checks passed! Ready for review.

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.

2 participants