Updated on 2025-09-23 GMT+08:00

Configuring Push Permissions

Constraints

Table 1 Constraints on configuring push permissions

Item

Description

Permission constraint

To configure push permission rules for a repository, you must have the set permission on the repository. For details, see Configuring Repo-Level Permissions.

Configuring Push Permissions for Code Files

  1. Go to the homepage of the repository Test_JAVA_Demo, choose Settings > Policy Settings > Push Permissions, and click Create Push Policy.
  2. Set parameters based on Table 2. As shown in the following figure, Test/* indicates that only Developer can push all files in the Test/ directory.

Table 2 Parameters for creating push permissions

Parameter

Description

File Path

Enter a complete path or a path with a wildcard as required.

Only one path can be added at a time. Batch addition is not supported. The path can contain a maximum of 256 characters.

Add Permissions

Optional. It indicates the roles allowed to push files. You can select member groups, members, or roles from the drop-down list.

If you do not add any member group, member, or role, no one can push files in this path or files that comply with the wildcard path rule.

Managing Push Permission Rules

Click in the row where the push permission rule is located to modify roles with this permission.

Click in the Operation column of the push permission rule to delete it.