Skip to content

Commit f95bd5c

Browse files
committed
fix: use secret from input
1 parent 20a45f3 commit f95bd5c

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ description = "Common GitHub Actions for DevOps operations"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8-
"pre-commit>=4.3.0",
8+
"pre-commit==3.5.0",
99
]

shared-actions/create-release/action.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
spec-file:
66
description: "Path to the specification file; must be JSON type."
77
required: true
8+
git-token:
9+
description: "GitHub token with write access to the repository."
10+
required: true
811
release-notes-dir:
912
description: "Path to the directory containing release notes."
1013
required: false
@@ -130,7 +133,7 @@ runs:
130133
if: steps.check_version.outputs.should_release == 'true'
131134
uses: actions/create-release@v1
132135
env:
133-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
GITHUB_TOKEN: ${{ inputs.git-token }}
134137
with:
135138
tag_name: ${{ steps.read_version.outputs.version }}
136139
release_name: ${{ steps.read_version.outputs.version }}

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)