Skip to content

Commit d6a65a0

Browse files
authored
chore: update CI workflow permissions and improve Git configuration for GitHub Actions (#30)
* chore: update CI workflow permissions and improve Git configuration for GitHub Actions * chore: update CI workflow to use github.ref for branch reference
1 parent 2e1f02d commit d6a65a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
ci:
2323
name: Run Test and Review PR
2424
runs-on: ubuntu-latest
25+
permissions: # Job-level permissions configuration starts here
26+
contents: write # 'write' access to repository contents
27+
pull-requests: write # 'write' access to pull requests
2528

2629
steps:
2730
- name: Checkout 🛎️
@@ -57,8 +60,8 @@ jobs:
5760
- name: Commit files
5861
if: steps.verify-changed-files.outputs.files_changed == 'true'
5962
run: |
60-
git config --local user.email "imamuzzaki@gmail.com"
61-
git config --local user.name "ImBIOS"
63+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
64+
git config --local user.name "github-actions[bot]"
6265
git add coverage.svg
6366
git commit -m "Updated coverage.svg"
6467

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ COPY sources/ ./sources/
2525
RUN git config --global user.name "readme-bot" && \
2626
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
2727

28-
ENTRYPOINT ["python3", "sources/main.py"]
28+
ENTRYPOINT ["pipenv", "run", "python3", "sources/main.py"]

0 commit comments

Comments
 (0)