Skip to content

Commit

Permalink
Add README.md, and update audit.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Dec 4, 2024
1 parent f0034e9 commit 5819db2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
4 changes: 3 additions & 1 deletion audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5819db2

Please sign in to comment.