Skip to content

Commit 0729278

Browse files
authored
chore: gha - security improvements (#34)
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
1 parent 4536981 commit 0729278

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/lint-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=netboxlabs.diode.sdk tests/ | tee pytest-coverage.txt
4444
4545
- name: Pytest coverage comment
46-
uses: MishaKav/pytest-coverage-comment@main
46+
uses: MishaKav/pytest-coverage-comment@81882822c5b22af01f91bd3eacb1cefb6ad73dc2 # v1
4747
with:
4848
pytest-coverage-path: ./pytest-coverage.txt
4949
junitxml-path: ./pytest.xml

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
node-version: "lts/*"
4646
- name: Write package.json
47-
uses: DamianReeves/write-file-action@master
47+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
4848
with:
4949
path: ./package.json
5050
write-mode: overwrite
@@ -58,7 +58,7 @@ jobs:
5858
}
5959
}
6060
- name: Write .releaserc.json
61-
uses: DamianReeves/write-file-action@master
61+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
6262
with:
6363
path: ./.releaserc.json
6464
write-mode: overwrite
@@ -168,7 +168,7 @@ jobs:
168168
retention-days: 30
169169
if-no-files-found: error
170170
- name: Publish release distributions to PyPI
171-
uses: pypa/gh-action-pypi-publish@release/v1
171+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v.1.12.3
172172
with:
173173
packages-dir: dist
174174

@@ -183,7 +183,7 @@ jobs:
183183
with:
184184
node-version: "lts/*"
185185
- name: Write package.json
186-
uses: DamianReeves/write-file-action@master
186+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
187187
with:
188188
path: ./package.json
189189
write-mode: overwrite
@@ -197,7 +197,7 @@ jobs:
197197
}
198198
}
199199
- name: Write .releaserc.json
200-
uses: DamianReeves/write-file-action@master
200+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
201201
with:
202202
path: ./.releaserc.json
203203
write-mode: overwrite

0 commit comments

Comments
 (0)