You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/how-tos/create-and-publish-actions/manage-custom-actions.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,6 @@ To ensure that your action is compatible with other platforms, do not use any ha
42
42
43
43
## Using release management for actions
44
44
45
-
This section explains how you can use release management to distribute updates to your actions in a predictable way.
46
-
47
-
### Good practices for release management
48
-
49
45
If you're developing an action for other people to use, we recommend using release management to control how you distribute updates. Users can expect an action's patch version to include necessary critical fixes and security patches, while still remaining compatible with their existing workflows. You should consider releasing a new major version whenever your changes affect compatibility.
50
46
51
47
Under this release management approach, users should not be referencing an action's default branch, as it's likely to contain the latest code and consequently might be unstable. Instead, you can recommend that your users specify a major version when using your action, and only direct them to a more specific version if they encounter issues.
@@ -54,20 +50,20 @@ To use a specific action version, users can configure their {% data variables.pr
54
50
55
51
### Using tags for release management
56
52
57
-
We recommend using tags for actions release management. Using this approach, your users can easily distinguish between major and minor versions:
53
+
{% ifversion immutable-releases-preview %}
54
+
> [!NOTE] If you have enabled immutable releases to help prevent supply chain attacks and accidental changes to your releases, instead see [AUTOTITLE](/actions/how-tos/create-and-publish-actions/using-immutable-releases-and-tags-to-manage-your-actions-releases).
55
+
{% endif %}
58
56
59
-
1. Create and validate a release on a release branch (such as `release/v1`) before creating the release tag (for example, `v1.0.2`).
60
-
1. Create a release using semantic versioning. For more information, see [AUTOTITLE](/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
61
-
1. Move the major version tag (such as `v1`, `v2`) to point to the Git ref of the current release. For more information, see [Git basics - tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging).
57
+
We recommend using tags for actions release management. Using this approach, your users can easily distinguish between major and minor versions:
62
58
63
-
{% ifversion immutable-releases-preview %}
64
-
> [!NOTE]
65
-
> If you enable immutable releases, you can still move Git tags that are not linked to releases on {% data variables.product.github %}.
66
-
{% endif %}
59
+
1. Develop and validate a release on a release branch (for example, `release/v1`).
60
+
1. Create a release with a release tag using semantic versioning (for example, `v1.0.1`). For more information, see [AUTOTITLE](/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
61
+
1. Move the major version tag (for example, `v1`) to point to the Git ref of the current release. For more information, see [Git basics - tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging).
62
+
1. Introduce a new major version tag (for example, `v2`) for changes that will break existing workflows, such as changing an action's inputs.
67
63
68
-
1. Introduce a new major version tag (`v2`) for changes that will break existing workflows. For example, changing an action's inputs would be a breaking change.
64
+
#### Syntax for referencing tags
69
65
70
-
This example demonstrates how a user can reference a major release tag:
66
+
This example demonstrates how a user can reference a major version tag:
Copy file name to clipboardExpand all lines: content/actions/how-tos/create-and-publish-actions/release-and-maintain-actions.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,11 @@ To support the developer process in the next section, add two {% data variables.
55
55
1. Add a workflow that triggers when a commit is pushed to a feature branch or to `main` or when a pull request is created. Configure the workflow to run your unit and integration tests. For an example, see [this workflow](https://github.com/actions/javascript-action/blob/main/.github/workflows/ci.yml).
56
56
1. Add a workflow that triggers when a release is published or edited. Configure the workflow to ensure semantic tags are in place. You can use an action like [JasonEtco/build-and-tag-action](https://github.com/JasonEtco/build-and-tag-action) to compile and bundle the JavaScript and metadata file and force push semantic major, minor, and patch tags. For more information about semantic tags, see [About semantic versioning](https://docs.npmjs.com/about-semantic-versioning).
57
57
58
+
{% ifversion immutable-releases-preview %}
59
+
> [!NOTE]
60
+
> If you enable immutable releases for your repository, you cannot use this action to force push tags tied to releases on {% data variables.product.github %}. To learn how to manage your releases with immutable releases, see [AUTOTITLE](/actions/how-tos/create-and-publish-actions/using-immutable-releases-and-tags-to-manage-your-actions-releases).
61
+
{% endif %}
62
+
58
63
### Example developer process
59
64
60
65
Here is an example process that you can follow to automatically run tests, create a release{% ifversion fpt or ghec %} and publish to {% data variables.product.prodname_marketplace %}{% endif %}, and publish your action.
title: Using immutable releases and tags to manage your action's releases
3
+
shortTitle: Use immutable releases
4
+
intro: 'Learn how you can use a combination of immutable releases on {% data variables.product.github %} and Git tags to manage your action''s releases.'
5
+
versions:
6
+
feature: immutable-releases-preview
7
+
topics:
8
+
- Actions
9
+
- Code Security
10
+
- Vulnerabilities
11
+
- Dependencies
12
+
---
13
+
14
+
{% data reusables.releases.immutable-releases-preview-note %}
15
+
16
+
If you enable immutable releases on your action's repository, you can manage your action's releases as follows:
17
+
18
+
1. To start the release cycle, develop and validate a potential release for your action on a release branch.
19
+
1. Determine how you want to share your changes:
20
+
* If you are ready to share an unchangeable version of your action, create a release on {% data variables.product.github %} with a release-specific tag (for example, `v1.0.0`). See [AUTOTITLE](/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release).
21
+
* If you want to be able to update the Git tag of a release later, do not create a release on {% data variables.product.github %}. Instead, create a tag as follows:
22
+
* If your release contains breaking changes for existing workflows, create a major version tag (for example, `v1`).
23
+
* If your release contains new backwards-compatible functionality, create a minor version tag (for example, `v1.1`).
24
+
* If your release contains backwards-compatible bug fixes, create a patch version tag (for example, `v1.1.1`).
25
+
1. For Git tags that are not tied to a release on {% data variables.product.github %}, ensure users have access to the latest compatible version of your action by updating them as follows:
26
+
* For a major version, update the tag to point to the Git ref of the latest related minor version or patch version.
27
+
* For a minor version, update the tag to point to the Git ref of the latest related patch version.
28
+
29
+
To move an existing Git tag to the most recent commit, force push the tag with the following commands:
Copy file name to clipboardExpand all lines: content/apps/oauth-apps/building-oauth-apps/rate-limits-for-oauth-apps.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,9 @@ shortTitle: Rate limits
13
13
> [!NOTE]
14
14
> Consider building a {% data variables.product.prodname_github_app %} instead of an {% data variables.product.prodname_oauth_app %}. The rate limit for {% data variables.product.prodname_github_apps %} using an installation access token scales with the number of repositories and number of organization users. Conversely, {% data variables.product.prodname_oauth_apps %} have lower rate limits and do not scale. For more information, see [AUTOTITLE](/apps/oauth-apps/building-oauth-apps/differences-between-github-apps-and-oauth-apps) and [AUTOTITLE](/apps/creating-github-apps/setting-up-a-github-app/about-creating-github-apps).
15
15
16
+
> [!WARNING]
17
+
> {% data variables.product.prodname_oauth_apps %} are subject to a rate limit of **2,000 access token requests per hour**. If your application exceeds this limit, further requests to generate new access tokens will be temporarily blocked, and you may receive error responses. **This can lead to temporary outages**. Please plan your implementation accordingly to avoid potential service interruptions.
18
+
16
19
## About rate limits for {% data variables.product.prodname_oauth_apps %}
17
20
18
21
{% data variables.product.prodname_oauth_apps %} act on behalf of a user, by making requests with a user access token after the user authorizes the app. For more information, see [AUTOTITLE](/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps).
Copy file name to clipboardExpand all lines: content/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ For information about improving repository security, see [AUTOTITLE](/code-secur
80
80
81
81
### Changing from public to private
82
82
83
-
* Stars and watchers for this repository will be permanently erased, which will affect repository rankings.
83
+
* Stars and watchers for this repository will be erased, which will affect repository rankings.
84
84
* Custom {% data variables.product.prodname_dependabot %} alert rules will be disabled unless {% data variables.product.prodname_GH_code_security %} is enabled for this repository. Dependency graph and {% data variables.product.prodname_dependabot_alerts %} will remain enabled with permission to perform read-only analysis on this repository.
85
85
> * {% data variables.product.prodname_code_scanning_caps %} will become unavailable unless {% data variables.product.prodname_code_security %} is enabled for this repository.
86
86
* Current forks will remain public and will be detached from this repository.
@@ -92,17 +92,17 @@ For information about improving repository security, see [AUTOTITLE](/code-secur
92
92
* All push rulesets will be disabled.
93
93
* Your changes will be published as activity.
94
94
* Actions history and logs will be visible to everyone.
95
-
* Stars and watchers for this repository will be permanently erased.
95
+
* Stars and watchers for this repository will be erased.
96
96
97
97
### Changing from private to internal
98
98
99
99
* All members of the enterprise will be given read access.
100
100
* Outside collaborators can no longer be added to forks unless they're added to the root.
101
-
* Stars and watchers for this repository will be permanently erased.
101
+
* Stars and watchers for this repository will be erased.
102
102
103
103
### Changing from internal to private
104
104
105
-
* Stars and watchers for this repository will be permanently erased, which will affect repository rankings.
105
+
* Stars and watchers for this repository will be erased, which will affect repository rankings.
106
106
* Custom {% data variables.product.prodname_dependabot %} alert rules will be disabled unless {% data variables.product.prodname_GH_code_security %} is enabled for this repository. Dependency graph and {% data variables.product.prodname_dependabot_alerts %} will remain enabled with permission to perform read-only analysis on this repository.
107
107
> * {% data variables.product.prodname_code_scanning_caps %} will become unavailable unless {% data variables.product.prodname_code_security %} is enabled for this repository.
108
108
* Current forks will remain public and will be detached from this repository.
@@ -114,13 +114,13 @@ For information about improving repository security, see [AUTOTITLE](/code-secur
114
114
* All push rulesets will be disabled.
115
115
* Your changes will be published as activity.
116
116
* Actions history and logs will be visible to everyone.
117
-
* Stars and watchers for this repository will be permanently erased.
117
+
* Stars and watchers for this repository will be erased.
118
118
119
119
### Changing from public to internal
120
120
121
121
* All members of the enterprise will be given read access.
122
122
* Outside collaborators can no longer be added to forks unless they're added to the root.
123
-
* Stars and watchers for this repository will be permanently erased.
123
+
* Stars and watchers for this repository will be erased.
0 commit comments