fix(ci): pin + cache

This commit is contained in:
Timothy Stewart
2022-11-01 19:48:31 -05:00
parent 30ffc69192
commit afb96dbee2

View File

@@ -9,7 +9,7 @@ on:
jobs: jobs:
pre-commit-ci: pre-commit-ci:
name: Pre-Commit name: Pre-Commit
runs-on: [self-hosted, Linux, x64] runs-on: self-hosted
env: env:
PYTHON_VERSION: "3.10" PYTHON_VERSION: "3.10"
@@ -40,3 +40,15 @@ jobs:
- name: Run pre-commit - name: Run pre-commit
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # 3.0.0 uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # 3.0.0
ensure-pinned-actions:
name: Ensure SHA Pinned Actions
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@6ca5574367befbc9efdb2fa25978084159c5902d # 1.3.0
with:
allowlist: |
aws-actions/
docker/login-action