Commit Graph

55 Commits

Author SHA1 Message Date
Henry Mercer 2a02de1a14 Read token from stdin in sync-checks.ts
Also allow specifying the token using an environment variable.
2026-05-15 14:53:43 +01:00
Michael B. Gale 8a0b4f2746 fixup! Update CONTRIBUTING.md 2026-03-25 14:14:49 +00:00
Michael B. Gale fae4c28b51 Update CONTRIBUTING.md 2026-03-25 13:48:55 +00:00
Michael B. Gale c5a984e1aa Update CONTRIBUTING.md 2026-03-25 13:16:33 +00:00
Michael B. Gale c0b22b827b Replace filename in CONTRIBUTING.md 2026-03-02 15:40:32 +00:00
Mario Campos 7434149006 Upgrade Node.js version to 24.
This requires creating a new major-version (v4) of codeql-action.
2025-09-30 13:56:31 -05:00
Michael B. Gale e2e1db3e4e Update CONTRIBUTING.md with npm run ava 2025-09-25 14:22:38 +01:00
Michael B. Gale 76a3cccaa4 Clarify instructions for updating PR checks for PRs 2025-09-08 17:35:54 +01:00
Henry Mercer 138655eddc Update CONTRIBUTING.md 2025-08-29 12:13:22 +01:00
Henry Mercer fc8d71f801 Add reminder to CONTRIBUTING.md 2025-01-15 14:12:58 +00:00
Andrew Eisenberg a082142a01 Merge branch 'main' into add-period-to-sentence 2025-01-13 09:21:14 -08:00
Josiah Altschuler c0addecf24 Add period to end of sentence 2025-01-10 21:37:36 -06:00
Josiah Altschuler a477602004 Change 'an' to 'a' 2025-01-10 20:20:12 -06:00
Angela P Wen 66f5682768 Add section on adding a new major version 2025-01-07 14:50:25 -08:00
Angela P Wen 913d60579d Remove mentions to v2 in documentation 2025-01-07 14:00:12 -08:00
Andrew Eisenberg e50fb8fff0 Add a compatibility table to the README
Specifies the versions of the action, CLI and GHES that are jointly compatible.
2024-05-07 13:58:01 -07:00
Angela P Wen 2ddf87a698 Update release documentation with v3 instructions 2024-02-15 09:04:33 -08:00
nickfyson 9ed5fc7131 add note about backporting check changes to v2 branch 2023-12-20 20:00:52 +00:00
nickfyson a42c9a2634 update required checks script to handle release branches 2023-12-20 17:23:05 +00:00
Nick Fyson 3537bea580 Apply suggestions from code review
Co-authored-by: Henry Mercer <henry.mercer@me.com>
2023-12-06 11:40:07 +00:00
nickfyson 2dbffae187 add note in CONTRIBUTING.md on how to deprecate an action version 2023-12-04 22:15:47 +00:00
nickfyson b7f289ef4d update release process to support multiple version 2023-12-04 14:28:55 +00:00
Henry Mercer 1d70a98580 Document CodeQL deprecation process 2023-09-27 19:10:31 +01:00
Henry Mercer 8d7f61b8f2 Update npm version 2023-05-25 17:06:08 +01:00
Henry Mercer 50bc388cfc Update Node version 2023-05-25 17:04:40 +01:00
Angela P Wen 89c5165e5a Remove v1 from release docs (#1536) 2023-02-10 12:40:45 -08:00
Henry Mercer 51abddb49b Delete the runner 2022-11-14 16:23:14 +00:00
Andrew Eisenberg d468c94a69 Update contributing.md
Change the text for keeping the checks up to date.
2022-05-10 09:55:27 -07:00
Andrew Eisenberg b71f20d70f Add workflow to regenerate required checks
Update contributing guide.
Ensure this workflow runs once a week.
2022-05-02 10:15:40 -07:00
Andrew Eisenberg c9882bef2d Update CONTRIBUTING.md 2022-05-02 08:58:10 -07:00
Andrew Eisenberg 9a6bf18ec4 Update CONTRIBUTING.md
Clarify instructions for updating required checks
2022-05-02 08:29:30 -07:00
Henry Mercer 9daf1de73c Update references to release branches
Prepare for renaming `v1` -> `releases/v1` and `v2` -> `releases/v2`.
2022-04-14 17:48:46 +01:00
Henry Mercer 044f112dc1 Update branch protection instructions 2022-03-25 15:24:54 +00:00
Henry Mercer da7944b165 Update release process doc 2022-03-24 18:18:45 +00:00
Andrew Eisenberg 8ecc1fcbc4 Ignore "Update Supported Enterprise Server Versions" 2022-03-11 09:38:08 -08:00
Andrew Eisenberg 04d521d705 Avoid using sed, use --slurp instead 2022-03-09 11:07:16 -08:00
Andrew Eisenberg 111428ce06 Add some instructions on how to regenerate required checks 2022-03-08 10:19:32 -08:00
Henry Mercer 4e477f1b95 Add more details on the workflows involved in the release process 2021-08-11 18:11:25 +01:00
Henry Mercer a068a286e6 Add brief instructions on creating a release 2021-08-11 17:50:47 +01:00
Andrew Eisenberg 082575fbc3 Merge branch 'main' into aeisenberg/env-vars 2021-06-02 11:40:40 -07:00
Andrew Eisenberg 2c2ebdc5c5 Remove local environment running
This is a functionality that never worked perfectly and hasn't been
used for a while.

This allows developers to run the action on their local machine, but
the run was always flaky and never 100% mirrored what was happening on
the actions runner.
2021-06-02 11:26:11 -07:00
Edoardo Pirovano 0cbd4b56d3 Add some dependencies for uploading artifacts 2021-06-02 10:32:48 +01:00
Andrew Eisenberg a9cdff830d Remove confusing words
Co-authored-by: Robert <robertbrignull@github.com>
2021-05-10 10:25:31 -07:00
Andrew Eisenberg 793b3772ec Fix information about npm ci 2021-05-10 10:05:30 -07:00
Andrew Eisenberg 3280a85376 Update contributing guide
This adds a section on checking in compiled artifacts.
2021-05-10 09:04:59 -07:00
Simon Engledew 5c0e2f93f1 Fix invalid API call when running locally
The method getAnalysisKey would call getWorkflowPath and raise an API Error.

This change follows the pattern in prepareLocalRunEnvironment to set a dummy value for the required environment variable, therefore shortcutting the API request.
2020-11-04 09:58:09 +00:00
Robert Brignull 09677dada5 rename CLI to runner 2020-08-25 17:44:30 +01:00
Robert Brignull 88d9e95da6 add minimal instructions for building CLI 2020-08-24 14:04:29 +01:00
Andrew Eisenberg 42235cc048 Allow the codeql-action to be run locally (#117)
* Allow the codeql-action to be run locally

This change allows the codeql-action to be run locally through
[act](https://github.com/nektos/act).

In order to run the action locally, you need to do two things:

1. Add the `CODEQL_LOCAL_RUN: true` environment variable. The only way
   I could figure out how to do this was to add it directly in the
   workflow file in an `env` block. It _should_ be possible to add it
   through a `.env` file and pass it to `act`, but I couldn't get it
   working.
2. Run this command `act -j codeql -s GITHUB_TOKEN=<MY_PAT>`

Setting the `CODEQL_LOCAL_RUN` env var will fill in missing env vars
that the action needs, but isn't set by `act`. It will also avoid
making api calls to github that would fail locally.

This is a refactoring discussed in
https://github.com/github/dsp-codeql/issues/36
2020-08-04 14:35:20 -07:00
Andrew Eisenberg 93dd64d351 Use templated strings for better readability 2020-07-24 08:29:04 -07:00