Skip to content

Commit d7a8dbb

Browse files
authored
Merge pull request #122 from jepler/improve-actions
2 parents 13e0da8 + 287d2be commit d7a8dbb

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
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

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
hooks:
1313
- id: check-yaml
1414
- id: end-of-file-fixer
15-
exclude: tests
15+
exclude: src/wwvb/iersdata.json
1616
- id: trailing-whitespace
1717
exclude: test/wwvbgen_testcases
1818
- repo: https://github.com/fsfe/reuse-tool

0 commit comments

Comments
 (0)