Skip to content

Commit c572917

Browse files
committed
misc
1 parent 42f1087 commit c572917

File tree

21 files changed

+11767
-12220
lines changed

21 files changed

+11767
-12220
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
- main
1212

1313
permissions:
14-
contents: write
15-
pull-requests: write
14+
contents: write # Required to create tags, creaste releases and update wiki
15+
pull-requests: write # Required to comment on pull requests
1616

1717
jobs:
1818
test-action:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ requests and creating releases.
124124
for `pull-requests` must be set to `"write"`.
125125
- Additionally, the workflow permission for `contents` must also be set to `"write"` to allow the action to create tags
126126
and releases.
127-
- For security considerations and best practices when using the `github_token` or PATs, please refer to the
127+
- For security considerations and best practices when using the `github_token`, please refer to the
128128
[Security Documentation](./security.md).
129129
- Ensure the **Restrict editing to users in teams with push access only** setting is enabled for public repositories, as
130130
the GitHub Actions Bot can write to the wiki by default.
@@ -190,7 +190,7 @@ by Piotr Krukowski.
190190
## Notes
191191

192192
- This action uses [Conventional Commits](https://www.conventionalcommits.org/) to automatically determine the release
193-
type _(major, minor, or patch)_ based on commit messages.
193+
type _(major, minor, or patch)_ based on commit messages. This behavior is configurable via [inputs](#optional-inputs).
194194
- Versioning is done using [Semantic Versioning (SemVer)](https://semver.org/), which provides a clear and consistent
195195
way to manage module versions.
196196
- Commit messages are linked to the respective Terraform directories _(handling PRs that may have separate modules and

action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ inputs:
2424
description: Specifies the default tag version. (Should be in format v#.#.#)
2525
required: true
2626
default: v1.0.0
27-
github_token:
28-
description: Use this if you wish to use a different GitHub token than the one provided by the workflow.
29-
required: true
30-
default: ${{ github.token }}default
3127
terraform-docs-version:
3228
description: >
3329
Specifies the terraform-docs version used to generate documentation for the wiki.
@@ -55,7 +51,12 @@ inputs:
5551
Adjust this value to control the visibility of changelog entries in the module sidebar.
5652
required: true
5753
default: "5"
58-
54+
github_token:
55+
description: |
56+
Required for retrieving pull request metadata, tags, releases, updating PR comments, wiki, and creating tags/releases.
57+
Automatically injected for convenience; no need to provide a custom token unless you have specific requirements.
58+
required: true
59+
default: ${{ github.token }}
5960
runs:
6061
using: node20
6162
main: dist/index.js

0 commit comments

Comments
 (0)