{"id":19889787,"url":"https://github.com/haaleo/publish-vscode-extension","last_synced_at":"2025-10-04T11:12:39.891Z","repository":{"id":37740649,"uuid":"273933544","full_name":"HaaLeo/publish-vscode-extension","owner":"HaaLeo","description":"GitHub action to publish your VS Code Extension to the Open VSX Registry or Visual Studio Marketplace.","archived":false,"fork":false,"pushed_at":"2025-08-06T17:29:35.000Z","size":13343,"stargazers_count":233,"open_issues_count":7,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T19:42:47.902Z","etag":null,"topics":["deployment","github-actions","open-vsx","openvsx","publishing","visual-studio-code-extension","visual-studio-marketplace","vscode"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HaaLeo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"HaaLeo","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/LeoHanisch"]}},"created_at":"2020-06-21T15:37:39.000Z","updated_at":"2025-09-18T22:33:22.000Z","dependencies_parsed_at":"2023-02-13T19:01:12.869Z","dependency_job_id":"0c2f37d4-39a2-4914-a2bf-90d85a77823e","html_url":"https://github.com/HaaLeo/publish-vscode-extension","commit_stats":{"total_commits":110,"total_committers":5,"mean_commits":22.0,"dds":0.4727272727272728,"last_synced_commit":"c1a0486c5a3eed24e8c21d4e37889a7c4c60c443"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/HaaLeo/publish-vscode-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaaLeo%2Fpublish-vscode-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaaLeo%2Fpublish-vscode-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaaLeo%2Fpublish-vscode-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaaLeo%2Fpublish-vscode-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaaLeo","download_url":"https://codeload.github.com/HaaLeo/publish-vscode-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaaLeo%2Fpublish-vscode-extension/sbom","scorecard":{"id":60628,"data":{"date":"2025-08-11","repo":{"name":"github.com/HaaLeo/publish-vscode-extension","commit":"d42ddad3982e1ab43b36a937ac6dedaa337db8b8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/HaaLeo/publish-vscode-extension/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/HaaLeo/publish-vscode-extension/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/HaaLeo/publish-vscode-extension/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/HaaLeo/publish-vscode-extension/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/HaaLeo/publish-vscode-extension/CI.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T01:37:17.699Z","repository_id":37740649,"created_at":"2025-08-15T01:37:17.699Z","updated_at":"2025-08-15T01:37:17.699Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278302554,"owners_count":25964524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","github-actions","open-vsx","openvsx","publishing","visual-studio-code-extension","visual-studio-marketplace","vscode"],"created_at":"2024-11-12T18:11:46.536Z","updated_at":"2025-10-04T11:12:39.853Z","avatar_url":"https://github.com/HaaLeo.png","language":"TypeScript","funding_links":["https://github.com/sponsors/HaaLeo","https://www.paypal.me/LeoHanisch","https://www.paypal.me/LeoHanisch/3eur"],"categories":[],"sub_categories":[],"readme":"# Publish VS Code Extension \u0026#8212; GitHub Action\n\n[![Build, Lint, Test and Deploy](https://img.shields.io/github/actions/workflow/status/HaaLeo/publish-vscode-extension/CI.yml?style=flat-square\u0026label=Lint%2C%20Build%2C%20Test%20and%20Deploy)](https://github.com/HaaLeo/publish-vscode-extension/actions?query=workflow%3A%22Build%2C+Lint%2C+Test+and+Deploy%22) [![Coverage Status](https://img.shields.io/coveralls/github/HaaLeo/publish-vscode-extension?style=flat-square)](https://coveralls.io/github/HaaLeo/publish-vscode-extension)  \n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://raw.githubusercontent.com/HaaLeo/publish-vscode-extension/master/LICENSE.txt) [![Stars](https://img.shields.io/github/stars/HaaLeo/publish-vscode-extension.svg?label=Stars\u0026logo=github\u0026style=flat-square)](https://github.com/HaaLeo/publish-vscode-extension/stargazers)  \n[![Donate](https://img.shields.io/badge/☕️-Buy%20Me%20a%20Coffee-blue.svg?\u0026style=flat-square)](https://www.paypal.me/LeoHanisch/3eur)\n\nGitHub action to publish your VS Code Extension to the [Open VSX Registry](https://open-vsx.org/) or the [Visual Studio Marketplace](https://marketplace.visualstudio.com).\n\n\u003e All breaking changes of **v2** are listed in the [changelog](CHANGELOG.md#changelog)\n\n## Usage\n\nTo use the GitHub Action, just [reference the action](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#referencing-actions-in-your-workflow) in your workflow file.\n\n### Example\n\nThe following example shows a workflow that publishes an extension to the Open VSX Registry as well as to the Visual Studio Marketplace when a new tag was created:\n\n```yaml\non:\n  push:\n    tags:\n      - \"*\"\n\nname: Deploy Extension\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version: 20\n      - run: npm ci\n      - name: Publish to Open VSX Registry\n        uses: HaaLeo/publish-vscode-extension@v2\n        with:\n          pat: ${{ secrets.OPEN_VSX_TOKEN }}\n      - name: Publish to Visual Studio Marketplace\n        uses: HaaLeo/publish-vscode-extension@v2\n        with:\n          pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}\n          registryUrl: https://marketplace.visualstudio.com\n```\n\nTo package the extension only once and publish the **identical** `.vsix` file to both registries one can use the following two steps instead:\n\n```yaml\n- name: Publish to Open VSX Registry\n  uses: HaaLeo/publish-vscode-extension@v2\n  id: publishToOpenVSX\n  with:\n    pat: ${{ secrets.OPEN_VSX_TOKEN }}\n- name: Publish to Visual Studio Marketplace\n  uses: HaaLeo/publish-vscode-extension@v2\n  with:\n    pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}\n    registryUrl: https://marketplace.visualstudio.com\n    extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}\n```\n\nFor a more complete and complex example one can check out the workflow of [`HaaLeo/vscode-timing`](https://github.com/HaaLeo/vscode-timing/blob/master/.github/workflows/cicd.yml#L1).\n\n### Open VSX Registry\n\nTo publish to the Open VSX Registry ensure that your [extension's namespace](https://github.com/eclipse/openvsx/wiki/Publishing-Extensions#2-create-the-namespace) was created **beforehand**.\nYou need to set the `pat` parameter to your [Open VSX access token](https://github.com/eclipse/openvsx/wiki/Publishing-Extensions#1-create-an-access-token).\nFurther, you should ensure that you only publish an extension which is licensed.\nFor more information regarding Open VSX' timeline and its extensions' licensing check out [Brian King's blog](https://blogs.eclipse.org/post/brian-king/open-vsx-registry-under-new-management) (section \"Licensing\" and \"Timeline\").\n\nCurrently, this GitHub action allows you to publish extensions which do not state their license terms.\nHowever, this behavior is deprecated and a future release of this action will reject unlicensed extensions.\nTherefore, I heavily encourage you to publish an extension with a (permissive) license such as the [MIT license](https://choosealicense.com/licenses/mit/).\n\n### Visual Studio Marketplace\n\nIn order to upload your extension to the VS Marketplace you need to set the `pat` option to the corresponding [access token](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token). \nFurther, the `registryUrl` must be set to `https://marketplace.visualstudio.com`.\n\n\n## Input Parameters\n\nYou can set any or all of the following input parameters:\n\n|Name |Type |Required? |Default |Description\n|-|-|-|-|-\n|`pat` |string  |yes |-|The personal access token to the corresponding registry.\n|`extensionFile` |string  |no | - |Path to the vsix file to be published. This option will be preferred when set together with `packagePath`.\n|`registryUrl` |string  |no |`https://open-vsx.org` |Use the registry API at this base URL\n|`packagePath` |string |no | `./` |Path to the extension to be packaged and published. When `extensionFile` is set too `packagePath` is ignored.\n|`baseContentUrl` |string |no | - | Prepend all relative links in README.md with this URL.\n|`baseImagesUrl` |string |no | - | Prepend all relative image links in README.md with this URL.\n|`yarn` |boolean |no | `false` | Use yarn instead of npm while packing extension files.\n|`dryRun` |boolean |no | `false` | Set this option to `true` to package your extension but do not publish it. When using this option set the `pat` option to a stub value.\n|`noVerify` |boolean| no |`false` | Allow publishing extensions to the visual studio marketplace which use a proposed API (enableProposedApi: true). Similar to vsce's `--noVerify` command line argument.\n|`preRelease` |boolean| no |`false` | Mark the extensions release as pre-release. Is only considered when packaging an extension.\n|`dependencies` |boolean| no |`true` | Check that dependencies defined in `package.json` exist in `node_modules`. Set to `false` if using pnpm or yarn v2+ with PnP.\n|`skipDuplicate` |boolean| no |`false` | Fail silently if version already exists on the marketplace. Equivalent to the `--skip-duplicate` option of the vsce CLI.\n|`target` |string| no | - | Target architecture(s) the extension should run on. Separate multiple targets with spaces. E.g.: `'win32-x64 linux-x64'`\n\n## Outputs\n\nThe action exposes the following outputs:\n\n|Name |Type |Description\n|-|-|-\n|`vsixPath` |string |The path to the packaged and published VSIX file.\n\n## Contribution\n\nIf you found a bug or are missing a feature do not hesitate to [file an issue](https://github.com/HaaLeo/publish-vscode-extension/issues/new/choose).  \nPull Requests are welcome!\nTo get started submitting code changes please take a look at the [CONTRIBUTING.md](./CONTRIBUTING.md) file first.\n\n## Support\n\nWhen you like this extension make sure to [star the repo](https://github.com/HaaLeo/publish-vscode-extension/stargazers). I am always looking for new ideas and feedback.  \nIn addition, it is possible to [donate via paypal](https://www.paypal.me/LeoHanisch/3eur).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaaleo%2Fpublish-vscode-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaaleo%2Fpublish-vscode-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaaleo%2Fpublish-vscode-extension/lists"}