Skip to content

Commit c268288

Browse files
committed
➕ Add one new property about which authentication of uploading Python package.
1 parent 0db5092 commit c268288

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/tag_and_release/intent.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ project:
3131
package_name: ~ # Defaults to repository name if not set
3232
base_branch: master # Main/default branch for the project
3333

34+
# === PYTHON PACKAGE CONFIGURATION ===
35+
python:
36+
auth_method: oidc # oidc | token - Authentication method for PyPI uploads
37+
# OIDC (Trusted Publisher) - More secure, no secrets needed (recommended)
38+
# Token - Traditional API token authentication (requires PYPI_API_TOKEN secret)
39+
3440
# === GIT CONFIGURATION ===
3541
git:
3642
commit:
@@ -85,7 +91,13 @@ docs:
8591
# # Flexible Docker run options - supports any Docker run parameters
8692
# run_options: "-e CUSTOM_TOKEN=custom_test_value -e NODE_ENV=production"
8793
#
88-
# 4. Advanced Docker configuration examples:
94+
# 4. Python package authentication configuration:
95+
# python:
96+
# auth_method: oidc # Use OIDC (Trusted Publisher) - more secure
97+
# # OR
98+
# auth_method: token # Use API token - requires PYPI_API_TOKEN secret
99+
#
100+
# 5. Advanced Docker configuration examples:
89101
# docker:
90102
# run_options: "-e API_KEY=test123 -e DB_HOST=localhost -v /tmp:/app/tmp --network mynet"
91103
# # Multiple environment variables, volume mounts, custom networks, etc.

.github/workflows/rw_parse_project_config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ jobs:
112112
package_name: ${{ steps.parse.outputs.package_name }}
113113
base_branch: ${{ steps.parse.outputs.base_branch }}
114114

115+
# Python Package Configuration
116+
python_auth_method: ${{ steps.parse.outputs.python_auth_method }}
117+
115118
# Git Configuration
116119
git_commit_name: ${{ steps.parse.outputs.git_commit_name }}
117120
git_commit_email: ${{ steps.parse.outputs.git_commit_email }}
@@ -191,6 +194,9 @@ jobs:
191194
package_name=$(get_config ".project.package_name" "${{ github.event.repository.name }}")
192195
base_branch=$(get_config ".project.base_branch" "master")
193196
197+
# Parse Python Package Configuration
198+
python_auth_method=$(get_config ".python.auth_method" "oidc")
199+
194200
# Parse Git Configuration
195201
git_commit_name=$(get_config ".git.commit.name" "GitHub Actions Bot")
196202
git_commit_email=$(get_config ".git.commit.email" "[email protected]")
@@ -238,6 +244,8 @@ jobs:
238244
echo "package_name=$package_name" >> $GITHUB_OUTPUT
239245
echo "base_branch=$base_branch" >> $GITHUB_OUTPUT
240246
247+
echo "python_auth_method=$python_auth_method" >> $GITHUB_OUTPUT
248+
241249
echo "git_commit_name=$git_commit_name" >> $GITHUB_OUTPUT
242250
echo "git_commit_email=$git_commit_email" >> $GITHUB_OUTPUT
243251
@@ -274,6 +282,9 @@ jobs:
274282
echo " - Package: $package_name"
275283
echo " - Base Branch: $base_branch"
276284
echo ""
285+
echo "Python Package:"
286+
echo " - Auth Method: $python_auth_method"
287+
echo ""
277288
echo "Git:"
278289
echo " - Commit Name: $git_commit_name"
279290
echo " - Commit Email: $git_commit_email"

0 commit comments

Comments
 (0)