Skip to content

Commit f1e32de

Browse files
committed
trying github token
1 parent ef5a227 commit f1e32de

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/test_tagging.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@ name: Test Tag Creation
22
on:
33
workflow_dispatch:
44

5+
permissions:
6+
contents: write
7+
58
jobs:
69
test-tagging:
710
runs-on: ubuntu-latest
811
steps:
912
- name: Checkout repository
1013
uses: actions/checkout@v4
11-
with:
12-
token: ${{ secrets.PAT_TOKEN }}
1314

1415
- name: Test Tag Creation and Push
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
1716
run: |
1817
# Create a temporary test tag
1918
TAG="test-tag-v$(date +%s)"
@@ -22,9 +21,6 @@ jobs:
2221
git config user.name "github-actions[bot]"
2322
git config user.email "github-actions[bot]@users.noreply.github.com"
2423
25-
# Explicitly update remote with token to ensure correct authentication
26-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
27-
2824
git tag "$TAG"
2925
3026
echo "Pushing tag..."
@@ -33,4 +29,3 @@ jobs:
3329
echo "Tag pushed successfully. Cleaning up..."
3430
git push --delete origin "$TAG"
3531
echo "Cleanup complete."
36-

0 commit comments

Comments
 (0)