Steffen Bjerkenås
23217ad122
Merge pull request #48 from github/prep-for-deprecation-archiving
...
Add deprecation notice
2024-10-04 14:01:29 +02:00
Steffen Bjerkenås
fa1b90835b
Add deprecation notice
2024-10-04 12:06:23 +02:00
Javier de Pedro López
03dce307ca
Merge pull request #33 from froi/main
...
Update personal access token scopes
2021-10-14 18:28:14 +02:00
Froilán Irizarry Rivera
89d88bc297
docs: Update personal access token scopes
...
I've added the additional scopes that the error output returned by the
API mentions. A copy of the logged errors can be found in issue #19 .
Closes #19
2021-10-14 10:58:48 -04:00
Javier de Pedro López
689a0e0957
Merge pull request #30 from github/draft-release
...
Update package.json
2021-08-02 09:47:01 +02:00
Javier de Pedro López
5d1d0fabc7
Update package.json
2021-08-02 09:43:31 +02:00
Javier de Pedro López
f90d667f78
Merge pull request #29 from kyanny/version-from-package-json
...
Get version number from `package.json`
2021-08-02 09:37:05 +02:00
Kensuke Nagae
bbb5dfcaca
Get version from package.json
2021-08-01 03:20:51 +09:00
dependabot[bot]
6ac03117aa
Merge pull request #28 from github/dependabot/npm_and_yarn/glob-parent-5.1.2
2021-07-06 12:10:42 +00:00
dependabot[bot]
c39ce660ff
Bump glob-parent from 5.1.1 to 5.1.2
...
Bumps [glob-parent](https://github.com/gulpjs/glob-parent ) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases )
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md )
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2 )
---
updated-dependencies:
- dependency-name: glob-parent
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-12 15:00:45 +00:00
Javier de Pedro López
239d8d2b9e
Merge pull request #26 from github/kyanny-patch-2
...
Add `npm install` instruction at the _Running the CLI_ section
2021-06-04 10:25:39 +02:00
Kensuke Nagae
ca64b348a0
Add missing end-of-code-block syntax
2021-06-04 12:17:34 +09:00
Kensuke Nagae
ca60ec673d
Update README.md
...
ref: https://github.com/github/ghec-audit-log-cli/pull/26#pullrequestreview-675175990
Co-authored-by: Javier de Pedro López <droidpl@github.com>
2021-06-04 12:16:20 +09:00
Javier de Pedro López
e8938fd0d3
Merge pull request #25 from github/kyanny-patch-1
...
Fix `node` command example of the README.md
2021-06-03 13:39:55 +02:00
Kensuke Nagae
0f83a9e01d
Update README.md
...
Add `npm install` instruction at the _Running the CLI_ section.
2021-06-03 20:02:53 +09:00
Kensuke Nagae
7b25e8483d
Update README.md
...
Fix command example.
2021-06-03 19:45:02 +09:00
Javier de Pedro López
3b353a139c
Merge pull request #24 from github/kyanny-patch-1
...
Fix `git clone` URL of the README.md
2021-06-03 10:16:58 +02:00
Kensuke Nagae
affa78c8ca
Update README.md
...
Fix git clone URL.
2021-06-03 12:00:10 +09:00
Javier de Pedro López
1eb4c02250
Fix vulnerabilities from dependencies
2021-05-19 11:40:51 +02:00
Javier de Pedro López
3a3c558645
Merge pull request #22 from ffalor/commit_cursor
...
Fix .gitignore conflict with workflow step
2021-05-18 12:40:52 +02:00
Javier de Pedro López
6115f2db60
Merge pull request #23 from ffalor/prev_cursor
...
Fix LAST_CURSOR check logic
2021-05-18 12:38:25 +02:00
Javier de Pedro López
db02a9b61d
Merge pull request #21 from ax-tbowyer/main
...
Fixing Regex to match all cursor events
2021-05-18 12:35:53 +02:00
ffalor
0be2680bef
Fix LAST_CURSOR check logic
2021-05-17 14:00:38 -05:00
ffalor
5b90dfb9c7
Fix .gitignore conflict with workflow step
2021-05-17 13:51:03 -05:00
Tom Bowyer
5119782050
Update ghec-audit-log-utils.js
...
testing variations
2021-05-05 14:43:27 -05:00
Tom Bowyer
cf7b48f020
Update ghec-audit-log-utils.js
...
updating regex
2021-05-05 14:39:29 -05:00
Tom Bowyer
2954c76804
Update ghec-audit-log-utils.js
...
removing extra character
2021-05-05 14:33:25 -05:00
Tom Bowyer
190a9cada7
Update ghec-audit-log-utils.js
...
updating regex to match all available entries in the github audit log
2021-05-05 14:32:06 -05:00
Javier de Pedro López
6eee491723
Merge pull request #20 from github/froi/add-enterprise-endpoints
...
Add enterprise support for API v3
2021-04-13 12:17:15 +02:00
Froilan Irizarry Rivera
4a8f898777
Add PAT scope requirements
...
I've added a small table to inform the user of the scopes that the PAT requires to run this CLI.
2021-04-08 23:37:35 -04:00
Froilan Irizarry Rivera
7ca098abc5
Add expected values to input validation
...
I've added additional validation values for the source CLI input argument.
2021-04-08 13:41:40 -04:00
Froilan Irizarry Rivera
516b488aa9
Add source CLI arg to docs
...
I've added the new CLI argument "source" to the CLI arguments section of the README.
I've also cleaned up some markdown linting warnings.
2021-04-07 12:33:56 -04:00
Froilan Irizarry Rivera
ff041b98d1
Fix linting errors
2021-04-07 12:24:36 -04:00
Froilan Irizarry Rivera
1ee9357296
Refactor v3 data endpoints
...
I've refactored the requestV3Entries function to include the audit log source argument and the enterprise
audit log endpoints. The source argument will determine what endpoint to use.
I've also renamed the org argument to entity. Since we are now working with orgs or enterprises this name seemed
better suited.
The clients passed to the data request functions have also been changed to be the same name. We are now using the
graphql client that is included in the Octokit/rest package.
2021-04-07 12:11:51 -04:00
Froilan Irizarry Rivera
3dfeb28d5d
Add source input parameter
...
I've added the new source input parameter to out validateInput helper function. This
input parameter will let users specify if they what data from an org or from an enterprise.
2021-04-07 12:10:15 -04:00
Froilan Irizarry Rivera
bc63db09e3
Refactor GitHub client auth and dependency imports
...
I've added the octokit enterprise plugin. This will help us include the enterprise endpoints that are not
included by default. Including this plugin required that we change the way we are authenticating and creating
the Octokit client instance. We are now using an instance with the pluging added to create our client and it's auth.
I've also removed the import of octokit/graphql. This module is already included in the Octokit/rest library that we
are using. Removing the use of the octokit/graphql module let us also remove the function that creates a graphql client.
All the client creation code we need is now in the buildGitHubClient function. The client returned by this funciton is
now passed into the data export functions for API v3 and v4.
2021-04-07 10:58:46 -04:00
Froilan Irizarry Rivera
7d4491859a
Add octokit GitHub enterprise plugin and remove octokit/graphql
...
Adding the octokit enterprise plugin adds the enterprise endpoints that are not included by default.
Since we are using Octokit/rest as our GitHub client package an explicit inclusion of Octokit/graphql
isn't needed, it's already included. This functionality can be used directly from the octokit client
instance Eg. octokit.graphql.
Using graphql client directly from Octokit/rest will also help us avoid duplicate code since we now
only need to instanciate one client. I've removed the octokit/graphql from our explicit dependency list.
2021-04-07 10:32:23 -04:00
Javier de Pedro López
b4931ce8c2
Merge pull request #17 from github/droidpl/fix-folder-workflows
...
Rename the workflows folder
2021-03-12 17:35:21 +01:00
Javier de Pedro López
934ace8ad8
Rename the workflows folder
2021-03-12 17:32:54 +01:00
Javier de Pedro López
9f1ede8fcd
Merge pull request #16 from github/droidpl/readme-workflow-fix
...
Update link for the linked workflows
2021-03-12 17:30:32 +01:00
Javier de Pedro López
1fe111d23a
Update link for the linked workflows
2021-03-12 17:28:30 +01:00
Javier de Pedro López
f9bf8db39e
Merge pull request #15 from github/fix-token-regex
...
Fix the token regex to support the new format
2021-03-12 17:19:38 +01:00
Javier de Pedro López
9db338b752
Update ghec-audit-log-utils.js
...
Co-authored-by: Stefan Stölzle <stoe@github.com>
2021-03-12 16:13:19 +01:00
Javier de Pedro López
57fee5d225
Update the regex to match the recommended one
2021-03-12 15:15:50 +01:00
Javier de Pedro López
dcd78b7076
Fix lint issues
2021-03-12 10:15:17 +01:00
Javier de Pedro López
0aad99fa94
Fix the token regex to support the new format
2021-03-12 10:13:28 +01:00
Javier de Pedro López
b5a1aea2e1
Add new dependencies to the NOTICE
2021-03-03 14:31:45 +01:00
Javier de Pedro López
20e66c4edf
Merge pull request #14 from github/addGit
...
adding some rest
2021-03-03 12:42:47 +01:00
Admiral Awkbar
37b3cf3f9b
fixed file name
2021-03-02 14:08:21 -06:00
Javier de Pedro López
d63c6181f4
Fix lint issues
2021-03-02 18:55:16 +01:00