You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,12 +115,31 @@ Alternatively, you can run the tests inside of vscode. There are several vscode
115
115
1. Unzip the `.vsix` and inspect its `package.json` to make sure the version is what you expect,
116
116
or look at the sourceif there's any doubt the right code is being shipped.
117
117
1. Go to the actions tab of the vscode-codeql repository and select the [Release workflow](https://github.com/github/vscode-codeql/actions?query=workflow%3ARelease).
118
+
- If there is an authentication failure when publishing, be sure to check that the authentication keys haven't expired. See below.
118
119
1. Approve the deployments of the correct Release workflow. This will automatically publish to Open VSX and VS Code Marketplace.
119
120
1. Go to the draft GitHub release in [the releases tab of the repository](https://github.com/github/vscode-codeql/releases), click 'Edit', add some summary description, and publish it.
120
121
1. Confirm the new release is marked as the latest release at <https://github.com/github/vscode-codeql/releases>.
121
122
1. If documentation changes need to be published, notify documentation team that release has been made.
122
123
1. Review and merge the version bump PR that is automatically created by Actions.
123
124
125
+
## Secrets and authentication for publishing
126
+
127
+
Repository administrators, will need to manage the authentication keys for publishing to the VS Code marketplace and Open VSX. Each requires an authentication token. The VS Code marketplace token expires yearly.
128
+
129
+
To regenerate the Open VSX token:
130
+
131
+
1. Log in to the [user settings page on Open VSX](https://open-vsx.org/user-settings/namespaces).
132
+
1. Make sure you are a member of the GitHub namespace.
133
+
1. Go to the [Access Tokens](https://open-vsx.org/user-settings/tokens) page and generate a new token.
134
+
1. Update the secret in the `publish-open-vsx` environment in the project settings.
135
+
136
+
To regenerate the VSCode Marketplace token:
137
+
138
+
1. Follow the instructions on [getting a PAT for Azure DevOps](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token).
139
+
1. Update the secret in the `publish-vscode-marketplace` environment in the project settings.
140
+
141
+
Not that Azure DevOps PATs expire yearly and must be regenerated.
142
+
124
143
## Resources
125
144
126
145
* [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
0 commit comments