Skip to content

Commit ff5fab3

Browse files
author
Omer Bulut
committed
fix: update CI workflow to use GITHUB_TOKEN and fix permissions
1 parent 3a73100 commit ff5fab3

6 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/CODEOWNERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Code owners for FreshLogger
2+
# This file defines who is responsible for code in this repository
3+
4+
# Global code owner - Ömer Bulut
5+
* @omerrbbulut
6+
7+
# Specific file ownership (if needed)
8+
# src/ @omerrbbulut
9+
# tests/ @omerrbbulut
10+
# docs/ @omerrbbulut

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
release:
99
types: [ published ]
1010

11+
# Add permissions for the workflow
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
1116
jobs:
1217
test:
1318
runs-on: ubuntu-latest
@@ -19,6 +24,8 @@ jobs:
1924

2025
steps:
2126
- uses: actions/checkout@v4
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}
2229

2330
- name: Setup C++ Environment
2431
run: |
@@ -126,12 +133,11 @@ jobs:
126133
sed -i "s/Version:.*[0-9]\+\.[0-9]\+\.[0-9]\+/Version: $NEW_VERSION/" Logger.hpp
127134
echo "✅ Version updated to $NEW_VERSION"
128135
129-
# Commit and push with PAT token
136+
# Commit and push with GITHUB_TOKEN
130137
git config --local user.email "action@github.com"
131138
git config --local user.name "GitHub Action"
132139
git add Logger.hpp
133140
git commit -m "chore: auto-bump version to $NEW_VERSION [skip ci]"
134-
git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/omerrbbulut/FreshLogger.git
135141
git push origin main
136142
137143
echo "🚀 Version $NEW_VERSION pushed to main"

edge_case_tests

-5.38 MB
Binary file not shown.

performance_tests

-5.39 MB
Binary file not shown.

simple_tests

-5.09 MB
Binary file not shown.

stress_tests

-5.48 MB
Binary file not shown.

0 commit comments

Comments
 (0)