From 5819db2eb19dda6367ef286aefc4b247284a17c4 Mon Sep 17 00:00:00 2001 From: Dai MIKURUBE Date: Wed, 4 Dec 2024 17:33:51 +0900 Subject: [PATCH] Add README.md, and update audit.rb --- README.md | 19 +++++++++++++++++++ audit.rb | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..356c2ef --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +Create a GitHub fine-grained personal access token at : https://github.com/settings/personal-access-tokens/new + +* Resource owner: embulk +* Expiration: as needed +* Repository access: All repositories +* Permissions: + * Repository permissions: + * Administration: Read-only + * Commit statuses: Read-only + * Contents: Read-only + * Custom properties: Read-only + * Environments: Read-only + * Metadata: Read-only (mandatory) + * Pull requests: Read-only + +``` +bundle install +env GITHUB_TOKEN="..." bundle exec ruby ./audit.rb +``` diff --git a/audit.rb b/audit.rb index b693577..964fb1d 100644 --- a/audit.rb +++ b/audit.rb @@ -48,4 +48,6 @@ def load_actual_repos(access_token) expected_repos = load_expected_repos("repos.yaml") actual_repos = load_actual_repos(ENV.fetch('GITHUB_TOKEN')) -assert_repos(expected_repos, actual_repos) +puts actual_repos.inspect + +# assert_repos(expected_repos, actual_repos)