RepoAuditor 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {repoauditor-0.2.3 → repoauditor-0.2.4}/PKG-INFO +58 -4
- {repoauditor-0.2.3 → repoauditor-0.2.4}/README.md +57 -3
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/__init__.py +1 -1
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.copier-answers.yml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/CODEOWNERS +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/actions/release_impl/action.yml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/pull_request_template.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/release_sources.yaml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/workflows/CICD.yml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/workflows/CICD_impl.yml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.github/workflows/codeql.yml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.gitignore +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.pre-commit-config.yaml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/.python-version +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/CODE_OF_CONDUCT.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/CONTRIBUTING.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/DEVELOPMENT.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/GOVERNANCE.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/LICENSE +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/MAINTAINERS.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/SECURITY.md +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/minisign_key.pub +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/pyproject.toml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/AutoGitSemVer.yaml +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/CommandLineProcessor.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/EntryPoint.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/ExecuteModules.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Impl/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Module.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugin.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowForcePushes.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/Protected.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Module.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/AutoMerge.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DefaultBranch.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DeleteHeadBranches.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DependabotSecurityUpdates.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Description.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardValueRequirementImpl.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/License.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommit.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommitMessage.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Private.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/RebaseMergeCommit.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanning.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanningPushProtection.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashCommitMerge.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashMergeCommitMessage.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SuggestUpdatingPullRequestBranches.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportDiscussions.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportIssues.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportProjects.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportWikis.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/TemplateRepository.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/WebCommitSignoff.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/__init__.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Query.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Requirement.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/py.typed +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/CommandLineProcessor_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/EntryPoint_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/ExecuteModules_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Module_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Plugin_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Plugins/GitHub_EndToEndTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Plugins/utilities.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Query_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Requirement_UnitTest.py +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
- {repoauditor-0.2.3 → repoauditor-0.2.4}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RepoAuditor
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Project-URL: Homepage, https://github.com/gt-sse-center/RepoAuditor
|
|
6
6
|
Project-URL: Documentation, https://github.com/gt-sse-center/RepoAuditor
|
|
@@ -41,19 +41,71 @@ Description-Content-Type: text/markdown
|
|
|
41
41
|
|
|
42
42
|
## Contents
|
|
43
43
|
- [Overview](#overview)
|
|
44
|
+
- [How to use RepoAuditor](#how-to-use-repoauditor)
|
|
45
|
+
- [Personal Access Token](#personal-access-token)
|
|
46
|
+
- [Example Usage](#example-usage)
|
|
44
47
|
- [Installation](#installation)
|
|
45
48
|
- [Development](#development)
|
|
46
49
|
- [Additional Information](#additional-information)
|
|
47
50
|
- [License](#license)
|
|
48
51
|
|
|
49
52
|
## Overview
|
|
50
|
-
|
|
53
|
+
|
|
54
|
+
We recommend using [uv](https://docs.astral.sh/uv/#uv) since `RepoAuditor` uses `uv` to create and manage a virtual environment.
|
|
51
55
|
|
|
52
56
|
### How to use RepoAuditor
|
|
53
|
-
TODO: Complete this section
|
|
54
57
|
|
|
55
58
|
<!-- Content below this delimiter will be copied to the generated README.md file. DO NOT REMOVE THIS COMMENT, as it will cause regeneration to fail. -->
|
|
56
59
|
|
|
60
|
+
Once installed, you can invoke the following to verify if `RepoAuditor` is installed correctly:
|
|
61
|
+
```shell
|
|
62
|
+
uv run repo_auditor --version
|
|
63
|
+
```
|
|
64
|
+
and you should see something like
|
|
65
|
+
```shell
|
|
66
|
+
RepoAuditor vX.X.X
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
To get a list of command line options, you can run
|
|
70
|
+
```shell
|
|
71
|
+
uv run repo_auditor --help
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Personal Access Token (PAT)
|
|
75
|
+
|
|
76
|
+
The most common use case for `RepoAuditor` would be to audit a GitHub repository.
|
|
77
|
+
In order to allow `RepoAuditor` to read the repository, you first need to generate a Personal Access Token or PAT.
|
|
78
|
+
|
|
79
|
+
Please refer to the [GitHub documentation on Personal Access Tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) for details about a `Fine-grained PAT` which we will be using.
|
|
80
|
+
|
|
81
|
+
To generate the Fine-grained PAT, we perform the following steps:
|
|
82
|
+
|
|
83
|
+
1. Go to `Settings -> Developer settings -> Personal Access Token -> Fine-grained tokens`.
|
|
84
|
+
2. Click on `Generate new token`.
|
|
85
|
+
3. Give the token a name and a description.
|
|
86
|
+
4. Set an appropriate expiration date.
|
|
87
|
+
5. Under `Repository Access`, select `All repositories`.
|
|
88
|
+
6. For permissions, we need to go to `Repository permissions`.
|
|
89
|
+
7. Enable Read-Write access to `Contents`, and Read access to `Administration`, `Secret Scanning` and `Dependabot Alerts`.
|
|
90
|
+
8. Click on `Generate token`.
|
|
91
|
+
9. Copy the generated string. This is your PAT.
|
|
92
|
+
|
|
93
|
+
After obtaining the PAT, you can save it in a file (e.g. `PAT`) which `RepoAuditor` can read on operation.
|
|
94
|
+
|
|
95
|
+
### Example Usage
|
|
96
|
+
|
|
97
|
+
With the above generated PAT file, you can now run `RepoAuditor` on your GitHub repository.
|
|
98
|
+
As an example, we will use the [python-helloworld](https://github.com/dbarnett/python-helloworld) repo.
|
|
99
|
+
|
|
100
|
+
**NOTE** You need to fork the repository since your default PAT only has access to repos under your account.
|
|
101
|
+
|
|
102
|
+
To run `RepoAuditor`, we can enter the following in the command-line:
|
|
103
|
+
```shell
|
|
104
|
+
uv run repo_auditor --include GitHub --GitHub-url https://github.com/<username>/python-helloworld --GitHub-pat PAT
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
`RepoAuditor` will generate a series of messages describing all the issues in the repository, along with the rationale behind them and the steps for resolution.
|
|
108
|
+
|
|
57
109
|
## Installation
|
|
58
110
|
|
|
59
111
|
| Installation Method | Command |
|
|
@@ -66,7 +118,9 @@ Artifacts are signed and validated using [py-minisign](https://github.com/x13a/p
|
|
|
66
118
|
|
|
67
119
|
To verify that an artifact is valid, visit [the latest release](https://github.com/gt-sse-center/RepoAuditor/releases/latest) and download the `.minisign` signature file that corresponds to the artifact, then run the following command, replacing `<filename>` with the name of the artifact to be verified:
|
|
68
120
|
|
|
69
|
-
|
|
121
|
+
```shell
|
|
122
|
+
uv run --with py-minisign python -c "import minisign; minisign.PublicKey.from_file('minisign_key.pub').verify_file('<filename>')"
|
|
123
|
+
```
|
|
70
124
|
|
|
71
125
|
## Development
|
|
72
126
|
Please visit [Contributing](https://github.com/gt-sse-center/RepoAuditor/blob/main/CONTRIBUTING.md) and [Development](https://github.com/gt-sse-center/RepoAuditor/blob/main/DEVELOPMENT.md) for information on contributing to this project.
|
|
@@ -16,19 +16,71 @@
|
|
|
16
16
|
|
|
17
17
|
## Contents
|
|
18
18
|
- [Overview](#overview)
|
|
19
|
+
- [How to use RepoAuditor](#how-to-use-repoauditor)
|
|
20
|
+
- [Personal Access Token](#personal-access-token)
|
|
21
|
+
- [Example Usage](#example-usage)
|
|
19
22
|
- [Installation](#installation)
|
|
20
23
|
- [Development](#development)
|
|
21
24
|
- [Additional Information](#additional-information)
|
|
22
25
|
- [License](#license)
|
|
23
26
|
|
|
24
27
|
## Overview
|
|
25
|
-
|
|
28
|
+
|
|
29
|
+
We recommend using [uv](https://docs.astral.sh/uv/#uv) since `RepoAuditor` uses `uv` to create and manage a virtual environment.
|
|
26
30
|
|
|
27
31
|
### How to use RepoAuditor
|
|
28
|
-
TODO: Complete this section
|
|
29
32
|
|
|
30
33
|
<!-- Content below this delimiter will be copied to the generated README.md file. DO NOT REMOVE THIS COMMENT, as it will cause regeneration to fail. -->
|
|
31
34
|
|
|
35
|
+
Once installed, you can invoke the following to verify if `RepoAuditor` is installed correctly:
|
|
36
|
+
```shell
|
|
37
|
+
uv run repo_auditor --version
|
|
38
|
+
```
|
|
39
|
+
and you should see something like
|
|
40
|
+
```shell
|
|
41
|
+
RepoAuditor vX.X.X
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
To get a list of command line options, you can run
|
|
45
|
+
```shell
|
|
46
|
+
uv run repo_auditor --help
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Personal Access Token (PAT)
|
|
50
|
+
|
|
51
|
+
The most common use case for `RepoAuditor` would be to audit a GitHub repository.
|
|
52
|
+
In order to allow `RepoAuditor` to read the repository, you first need to generate a Personal Access Token or PAT.
|
|
53
|
+
|
|
54
|
+
Please refer to the [GitHub documentation on Personal Access Tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) for details about a `Fine-grained PAT` which we will be using.
|
|
55
|
+
|
|
56
|
+
To generate the Fine-grained PAT, we perform the following steps:
|
|
57
|
+
|
|
58
|
+
1. Go to `Settings -> Developer settings -> Personal Access Token -> Fine-grained tokens`.
|
|
59
|
+
2. Click on `Generate new token`.
|
|
60
|
+
3. Give the token a name and a description.
|
|
61
|
+
4. Set an appropriate expiration date.
|
|
62
|
+
5. Under `Repository Access`, select `All repositories`.
|
|
63
|
+
6. For permissions, we need to go to `Repository permissions`.
|
|
64
|
+
7. Enable Read-Write access to `Contents`, and Read access to `Administration`, `Secret Scanning` and `Dependabot Alerts`.
|
|
65
|
+
8. Click on `Generate token`.
|
|
66
|
+
9. Copy the generated string. This is your PAT.
|
|
67
|
+
|
|
68
|
+
After obtaining the PAT, you can save it in a file (e.g. `PAT`) which `RepoAuditor` can read on operation.
|
|
69
|
+
|
|
70
|
+
### Example Usage
|
|
71
|
+
|
|
72
|
+
With the above generated PAT file, you can now run `RepoAuditor` on your GitHub repository.
|
|
73
|
+
As an example, we will use the [python-helloworld](https://github.com/dbarnett/python-helloworld) repo.
|
|
74
|
+
|
|
75
|
+
**NOTE** You need to fork the repository since your default PAT only has access to repos under your account.
|
|
76
|
+
|
|
77
|
+
To run `RepoAuditor`, we can enter the following in the command-line:
|
|
78
|
+
```shell
|
|
79
|
+
uv run repo_auditor --include GitHub --GitHub-url https://github.com/<username>/python-helloworld --GitHub-pat PAT
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`RepoAuditor` will generate a series of messages describing all the issues in the repository, along with the rationale behind them and the steps for resolution.
|
|
83
|
+
|
|
32
84
|
## Installation
|
|
33
85
|
|
|
34
86
|
| Installation Method | Command |
|
|
@@ -41,7 +93,9 @@ Artifacts are signed and validated using [py-minisign](https://github.com/x13a/p
|
|
|
41
93
|
|
|
42
94
|
To verify that an artifact is valid, visit [the latest release](https://github.com/gt-sse-center/RepoAuditor/releases/latest) and download the `.minisign` signature file that corresponds to the artifact, then run the following command, replacing `<filename>` with the name of the artifact to be verified:
|
|
43
95
|
|
|
44
|
-
|
|
96
|
+
```shell
|
|
97
|
+
uv run --with py-minisign python -c "import minisign; minisign.PublicKey.from_file('minisign_key.pub').verify_file('<filename>')"
|
|
98
|
+
```
|
|
45
99
|
|
|
46
100
|
## Development
|
|
47
101
|
Please visit [Contributing](https://github.com/gt-sse-center/RepoAuditor/blob/main/CONTRIBUTING.md) and [Development](https://github.com/gt-sse-center/RepoAuditor/blob/main/DEVELOPMENT.md) for information on contributing to this project.
|
|
@@ -3,4 +3,4 @@ APP_NAME = "RepoAuditor"
|
|
|
3
3
|
# Note that this value will be overwritten by calls to `python ../../Build.py update_version` based
|
|
4
4
|
# on changes observed in the git repository. The default value below will be used until the value
|
|
5
5
|
# here is explicitly updated by the Continuous Integration system.
|
|
6
|
-
__version__ = "0.2.
|
|
6
|
+
__version__ = "0.2.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py
RENAMED
|
File without changes
|
{repoauditor-0.2.3 → repoauditor-0.2.4}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.3 → repoauditor-0.2.4}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|