@@ -7,17 +7,22 @@ and users need not be concerned with this material.
7
7
8
8
When setting up the repository on GitHub, configure the following settings:
9
9
10
- - Under ` Secrets ` :
11
- - Under ` Actions ` , add the ` DOCKER_PASSWORD ` repository secret with an
10
+ - Under ` General ` → ` Pull Requests ` , enable
11
+ ` Automatically delete head branches ` .
12
+ - Under ` Secrets and variables ` :
13
+ - Under ` Actions ` , add a ` DOCKER_PASSWORD ` repository secret with an
12
14
appropriate value.
13
- - Under ` Dependabot ` , add the ` DOCKER_PASSWORD ` repository secret with an
14
- appropriate value (e.g., that of the corresponding secret above).
15
- - Under ` Branches ` , add a branch protection rule for the ` main ` branch.
16
- - Enable ` Require status checks to pass before merging ` .
17
- - Enable ` Require branches to be up to date before merging ` .
18
- - Add the ` Validate ` status check.
19
- - Enable ` Include administrators ` .
20
- - Under ` Options ` , enable ` Automatically delete head branches ` .
15
+ - Under ` Dependabot ` , add the ` DOCKER_PASSWORD ` repository secret from above.
16
+ - Under ` Branches ` , click ` Add a branch ruleset ` and configure it as follows:
17
+ - For the ruleset name, you can use the name of the branch: ` main ` .
18
+ - Set ` Enforcement status ` to ` Active `
19
+ - Under ` Targets ` → ` Target branches ` , click ` Add target ` and select
20
+ ` Include default branch ` from the dropdown menu.
21
+ - Under ` Rules ` → ` Branch rules ` , check ` Require status checks to pass ` and
22
+ configure it as follows before clicking the ` Create ` button:
23
+ - Enable ` Require branches to be up to date before merging `
24
+ - Click the ` Add checks ` button and add the ` Validate ` status check (you may
25
+ need to use the search box to find it).
21
26
- Under ` Pages ` , change the ` Source ` to ` GitHub Actions ` and check
22
27
` Enforce HTTPS ` .
23
28
0 commit comments