Skip to content

Commit 44df761

Browse files
authored
Hash pin Actions and enable dependabot (#228)
* Update ci.yml * Update lock.yml * Create dependabot.yml
1 parent 8b3d7ba commit 44df761

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions" # Necessary to update action hashes
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
# Allow up to 3 opened pull requests for github-actions versions
8+
open-pull-requests-limit: 3

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-20.04
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
1717
- name: Set up Python
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
1919
- name: Install dependencies
2020
run: pip install mypy
2121
- name: Run mypy
@@ -34,9 +34,9 @@ jobs:
3434
- "3.11"
3535
- "3.12-dev"
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3838
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v4
39+
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- name: Install test dependencies

.github/workflows/lock.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
issues: write
1515
steps:
16-
- uses: dessant/lock-threads@v3
16+
- uses: dessant/lock-threads@e460dfeb36e731f3aeb214be6b0c9a9d9a67eda6 # v3.0.0
1717
with:
1818
github-token: ${{ secrets.GITHUB_TOKEN }}
1919
issue-inactive-days: 90

0 commit comments

Comments
 (0)