Skip to content

Commit a78bd6f

Browse files
authored
Merge pull request #192 from tacaswell/harden_gha
CI: Harden GHA configuration
2 parents 587d70b + 2e765c7 commit a78bd6f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of your workflow files
6+
schedule:
7+
interval: "weekly" # Options: daily, weekly, monthly

.github/workflows/circleci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Run CircleCI artifacts redirector
1010
steps:
1111
- name: GitHub Action step
12-
uses: larsoner/circleci-artifacts-redirector-action@master
12+
uses: scientific-python/circleci-artifacts-redirector-action@7eafdb60666f57706a5525a2f5eb76224dc8779b # v1.1.0
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
api-token: ${{ secrets.CIRCLECI_TOKEN }}

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: GitHub Pages
2+
permissions:
3+
contents: read
24

35
on:
46
push:
@@ -13,6 +15,8 @@ jobs:
1315
steps:
1416
- name: checkout
1517
uses: actions/checkout@v3
18+
with:
19+
persist-credentials: false
1620

1721
- name: Install Python
1822
uses: actions/setup-python@v4
@@ -28,7 +32,7 @@ jobs:
2832
make -C docs html O="-t release"
2933
3034
- name: Deploy
31-
uses: peaceiris/actions-gh-pages@v3
35+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
3236
with:
3337
github_token: ${{ secrets.GITHUB_TOKEN }}
3438
publish_dir: ./docs/build/html

0 commit comments

Comments
 (0)