# Add rule

Adding the Immutability Tag is a tag rule for the project. The following are the steps for adding tags to immutability:

* Select the Tag Immutability tab, and press the **Add Rule button.**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FBWhV5GH4r9XmuWVoJkMt%2Fimage.png?alt=media&#x26;token=ddbf0655-6a01-4c0a-b720-0bee4df75447" alt=""><figcaption></figcaption></figure>

* The Add Tag Immutability Rule window appears, in the For the repositories section select matching or excluding according to your needs. Click the Add button to **add** tags.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FLPX92oRX7gI2ZUVcXqfP%2Fimage.png?alt=media&#x26;token=e43e2b05-b75a-438d-930c-5dbd0e34d419" alt=""><figcaption></figcaption></figure>

**Below are several explanations related to the rule input fields:**

<table><thead><tr><th width="235.3333740234375">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>For the repositories</strong></td><td>This section is used to choose <strong>which repositories the rule will apply to</strong>.<br><br>- <strong>Matching :</strong> The rule is applied <strong>only to the repositories specified by the user</strong>.<br><br><strong>- Excluding :</strong> The rule is applied <strong>to all repositories, except those specified by the user</strong>.</td></tr><tr><td><strong>Tags</strong></td><td>This section allows you to define <strong>which image tags are protected from modification or overwrite</strong>.<br><br>- <strong>Matching :</strong> The rule is applied <strong>only to the tags specified by the user</strong>.<br><br><strong>- Excluding :</strong> The rule is applied <strong>to all tags, except those specified by the user</strong>.</td></tr></tbody></table>

* After the tag is successfully added, the system will display a notification **“Tags has been successfully created”**, indicating that the data has been added successfully and is now listed in the tags table.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FJWpgngaEmmB2ds89vako%2Fimage.png?alt=media&#x26;token=fa74678e-d39a-4529-aca7-584c73c78d47" alt=""><figcaption></figcaption></figure>
