Robert
b985a67b97
Only attempt to upload on dotcom
2021-06-16 17:24:26 +01:00
Robert
366b68eda0
Merge pull request #563 from github/robertbrignull/check_default_branch
...
Check if on default branch before uploading database
2021-06-16 15:11:45 +01:00
Robert
d693b3cb0d
Check if on default branch before uploading database
2021-06-16 14:43:42 +01:00
Robin Neatherway
429471162a
Update cleanup to bundle
2021-06-10 17:09:58 +01:00
Robert
2a9a602a5e
Upload databases from analyze action
2021-06-10 16:09:58 +01:00
Edoardo Pirovano
babcc1b793
Add --finalize-dataset to database finalize call
2021-06-09 16:52:39 +01:00
Edoardo Pirovano
06df98a513
Add new log grouping for DB cleanup
2021-06-09 16:10:22 +01:00
Edoardo Pirovano
0ea20c5b32
Add intepret-results timings to status reports
2021-06-09 10:40:15 +01:00
Edoardo Pirovano
2cc885d66e
Replace analyze with run-queries and interpret-results
2021-06-08 09:25:17 +01:00
Edoardo Pirovano
c09500540c
Some refactoring in fingerprint computation
2021-06-08 00:09:27 +01:00
Andrew Eisenberg
9c13fefc68
Merge pull request #554 from github/mergeback/v1.0.1-to-main-ece2addc
...
Mergeback v1.0.1 refs/heads/v1 into main
2021-06-07 14:14:54 -07:00
Andrew Eisenberg
a69f472ee9
Merge branch 'main' into mergeback/v1.0.1-to-main-ece2addc
2021-06-07 14:01:04 -07:00
github-actions[bot]
fbb9046bf6
1.0.2
2021-06-07 20:59:15 +00:00
github-actions[bot]
9e6b46a9e6
Update changelog and version after v1.0.1
2021-06-07 20:59:13 +00:00
Andrew Eisenberg
ece2addcff
Merge pull request #553 from github/aeisenberg/no-quotes
...
Remove quotes around `$DRAFT` argument
v1.0.1
2021-06-07 13:54:37 -07:00
Andrew Eisenberg
74764ac0eb
Remove quotes around $DRAFT argument
...
gh will complain if there is an empty `""`, which is the case if
`$DRAFT` is unset.
2021-06-07 13:53:47 -07:00
Chris Gavin
675843d09a
Merge pull request #549 from github/update-v1.0.1-242fd828
...
Merge main into v1
2021-06-07 16:26:37 +01:00
Chris Gavin
511fe43abe
Empty commit to trigger CI.
2021-06-07 16:14:10 +01:00
Edoardo Pirovano
02e8dcfe9c
Fix out of memory in hash computation
2021-06-07 15:12:45 +01:00
github-actions[bot]
68d7c5f620
1.0.1
2021-06-07 09:30:01 +00:00
Chris Gavin
242fd828aa
Merge pull request #547 from github/retrying-fix
...
Add back retrying.
2021-06-07 08:04:21 +01:00
Chris Gavin
48efe6e282
Merge branch 'main' into retrying-fix
2021-06-07 07:47:18 +01:00
Chris Gavin
f8c65b775d
Fix stub in tests.
2021-06-07 07:14:44 +01:00
Edoardo Pirovano
1644ade514
Add --sarif-group-rules-by-pack flag
2021-06-06 09:56:54 +01:00
Edoardo Pirovano
ddb83a462d
Cleanup CodeQL DBs and output their location for later steps
2021-06-04 18:54:15 +01:00
Chris Gavin
41dff7fce3
Add back retrying.
2021-06-04 15:51:51 +01:00
Andrew Eisenberg
cbdf0df97b
Merge pull request #539 from github/aeisenberg/env-vars
...
Add environment variables to signal feature and version to the CLI
2021-06-03 15:35:17 -07:00
Andrew Eisenberg
f60ef170b0
Cleaning up comments around env vars
...
Also, move `getTemporaryDirectory` back to `actions-util`.
2021-06-03 11:33:20 -07:00
Andrew Eisenberg
cc0733fd12
Fix Unguarded actions library use code scanning error
...
Must access the env var directly in order to avoid recursive calls to
`getRequiredEnvParam`.
2021-06-02 11:55:32 -07: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
Andrew Eisenberg
3708898bf2
Add environment variables to signal feature and version to the CLI
...
This PR ensures environment variables are set before any invocation of
the CLI. Here is a list of vars that are set:
https://github.com/github/codeql-coreql-team/issues/1124#issuecomment-852463521
This ensures the CLI knows the features and versions of the containing
actions/runner.
Additionally:
- Fix the user agent so that it more closely aligns with user agent
spec
- Refactor environment variable initialization so that it all happens in
one place and call.
- Move Mode, getRequiredEnvParam, setMode, getMode out of actions-util
and into util. actions-util is meant for utils only called by the
action, not the runner.
The `prepareLocalRunEnvironment()` method is most likely deprecated and
should be removed. I originally added it because I had a way of working
where I would run the action from my local machine to test out changes,
but this was always a little flaky. So, I no longer use this way of
working. I will probably remove it soon.
2021-06-02 11:06:02 -07:00
Aditya Sharad
1ec2fd7ea1
Merge pull request #542 from github/robertbrignull/import-actions-lib
...
Update unguarded-action-lib.ql to catch uses of actions-util.ts
2021-06-02 09:56:37 -07:00
Robert
61b561867b
Update unguarded-action-lib.ql
2021-06-02 16:51:30 +01:00
Andrew Eisenberg
4ac9009dfe
Merge pull request #541 from github/update-supported-enterprise-server-versions
...
Update supported GitHub Enterprise Server versions.
2021-06-02 08:28:15 -07:00
Andrew Eisenberg
e8486b0d6c
Merge branch 'main' into update-supported-enterprise-server-versions
2021-06-02 08:14:19 -07:00
Edoardo Pirovano
0cbd4b56d3
Add some dependencies for uploading artifacts
2021-06-02 10:32:48 +01:00
Andrew Eisenberg
739e14d879
Merge branch 'main' into update-supported-enterprise-server-versions
2021-06-01 22:40:01 -07:00
Andrew Eisenberg
1d05ad7576
Merge pull request #536 from github/aeisenberg/commander
...
Use commander preAction hook for setMode
2021-06-01 18:35:01 -07:00
GitHub
2fee1242f4
Update supported GitHub Enterprise Server versions.
2021-06-02 00:23:42 +00:00
Andrew Eisenberg
539d968ad7
Use commander preAction hook for setMode
...
Hooks are new to commander v8. We can use hooks to ensure that `setMode`
is called before every command is invoked.
2021-06-01 11:17:49 -07:00
Andrew Eisenberg
4b4a5ee9d1
Merge pull request #534 from github/aeisenberg/mergeback-fix
...
Fix the mergeback workflow
2021-06-01 10:35:47 -07:00
Andrew Eisenberg
f0e82b7d63
1.0.1
2021-05-31 10:56:52 -07:00
Andrew Eisenberg
c02d8cc7a9
Fix EOF newlines after npm version patch
...
The removeNPMAbsolutePaths check requires no newlines at the
end of the file. This ensures that the version update mimics
the behavior.
2021-05-31 10:37:07 -07:00
Andrew Eisenberg
a94829cc53
Manually update the CHANGELOG
...
This should have happened in a mergeback PR, but the workflow to
generate this was broken.
2021-05-31 10:11:08 -07:00
Andrew Eisenberg
7d701d23e3
Merge remote-tracking branch 'upstream/v1' into aeisenberg/mergeback-fix
2021-05-31 10:09:13 -07:00
Andrew Eisenberg
981b5cb012
Fix the mergeback workflow
...
We need to tag and mergeback if the tag does _not_ already exist.
2021-05-31 10:08:10 -07:00
Andrew Eisenberg
ca9450846f
Merge pull request #516 from github/aeisenberg/user-agent
...
Send version and mode to code scanning via user agent
2021-05-31 09:49:44 -07:00
Andrew Eisenberg
1a4cdd35b9
Use the version from package.json in the runner
2021-05-31 09:35:13 -07:00
Andrew Eisenberg
4164096c0d
Use the version from package.json in the runner
...
Update the ql queries to account for change in how we look for runner
Previously, we guarded blocks of code to be run by the runner or the
action using if statements like this:
```js
if (mode === "actions") ...
```
We are no longer doing this. And now, the `unguarded-action-lib.ql`
query is out of date. This query checks that runner code does not
unintentionally access actions-only methods in the libraries.
With these changes, we now ensure that code scanning is happy.
2021-05-31 09:34:41 -07:00