Skip to content

Commit

Permalink
Merge pull request #164 from hartwork/pin-github-actions-at-commit-level
Browse files Browse the repository at this point in the history
Pin GitHub Actions to specific commits for security
  • Loading branch information
hartwork authored Apr 17, 2023
2 parents 4ec7f66 + b9b5c80 commit 67d2f44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre_commit_detect_outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
name: Detect outdated pre-commit hooks
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Set up Python 3.11
uses: actions/[email protected]
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: 3.11

Expand All @@ -41,7 +41,7 @@ jobs:
- name: Create pull request from changes (if any)
id: create-pull-request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5 # v5.0.0
with:
author: 'pre-commit <[email protected]>'
base: master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre_commit_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Run pre-commit on all files
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Set up Python 3.8
uses: actions/[email protected]
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: 3.8

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
python-version: [3.7, 3.11] # no particular need for in-between versions
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: ${{ matrix.python-version }}

Expand Down

0 comments on commit 67d2f44

Please sign in to comment.