Skip to content

Commit 591dd44

Browse files
committed
Improve some actions
1 parent fca2abc commit 591dd44

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.github/workflows/codeql.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v4
32-
32+
with:
33+
persist-credentials: false
3334
- name: Install Dependencies (python)
3435
run: pip3 install -r requirements-dev.txt
3536

.github/workflows/cron.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: echo "$GITHUB_CONTEXT"
2222

2323
- uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2426

2527
- name: Set up Python 3.10
2628
uses: actions/setup-python@v5
@@ -37,8 +39,10 @@ jobs:
3739
run: python -munittest
3840

3941
- name: Commit updates
42+
env:
43+
REPO: ${{ github.repository }}
4044
run: |
4145
git config user.name "${GITHUB_ACTOR} (github actions cron)"
4246
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
43-
git remote set-url --push origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
47+
git remote set-url --push origin "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/$REPO"
4448
if git commit -m"update iersdata" src/wwvb/iersdata.json; then git push origin HEAD:main; fi

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
run: echo "$GITHUB_CONTEXT"
2020

2121
- uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2224

2325
- name: Set up Python
2426
uses: actions/setup-python@v5

.github/workflows/test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
python-version: '3.12'
2323

2424
- uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
2527

2628
- name: Install deps
2729
run: python -mpip install -r requirements-dev.txt
@@ -52,6 +54,8 @@ jobs:
5254
runs-on: ${{ matrix.os-version }}
5355
steps:
5456
- uses: actions/checkout@v4
57+
with:
58+
persist-credentials: false
5559

5660
- name: Set up Python
5761
uses: actions/setup-python@v5
@@ -84,6 +88,8 @@ jobs:
8488
runs-on: ubuntu-latest
8589
steps:
8690
- uses: actions/checkout@v4
91+
with:
92+
persist-credentials: false
8793

8894
- name: Set up Python
8995
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)