File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
TOKEN = ghp_TKN
2
- LEVEL = organization # repository, organization
2
+ LEVEL = organization_only # repository_only, organization_only, or organization_and_repository
3
3
REPO = repo-name
4
4
ORG = org-name
5
5
DEBUG = true
Original file line number Diff line number Diff line change @@ -57,16 +57,17 @@ npm install
57
57
Create a ` .env ` file by using our sample configuration file ` .env.sample ` :
58
58
``` text
59
59
TOKEN=ghp_TKN
60
- LEVEL=repository
60
+ LEVEL=repository_only # repository_only, organization_only, or organization_and_repository
61
61
REPO=repo-name
62
62
ORG=org-name
63
63
DEBUG=false
64
64
POLICIES_PATH=policies
65
65
```
66
66
67
67
where ` LEVEL ` is the scope of the checks:
68
- - ` repository ` for repository-level checks
69
- - ` organization ` for organization-level checks
68
+ - ` repository_only ` for repository-level checks
69
+ - ` organization_only ` for organization-level checks
70
+ - ` organization_and_repository ` for organization-level and repositorty_level checks for all the repos in the organization
70
71
71
72
Next, generate a Personal Access Token (PAT) from GitHub and input your settings into the ` .env ` file. Ensure your token has these permissions:
72
73
- ` repo: admin `
@@ -120,7 +121,7 @@ jobs:
120
121
repo : ${{ github.repository }}
121
122
org : ${{ github.repository_owner }}
122
123
token : ${{ TOKEN }}
123
- level : ' organization '
124
+ level : ' organization_only '
124
125
policy-dir : ' ./policies'
125
126
` ` `
126
127
You can’t perform that action at this time.
0 commit comments