Skip to content

Commit

Permalink
Fix pins on GHA workflows (#3874)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt authored Sep 28, 2023
1 parent 4d85475 commit 1dd9fc0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/closed-issue-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ name: Closed Issue Message
on:
issues:
types: [closed]

permissions:
contents: read

jobs:
auto_comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: aws-actions/closed-issue-message@v1
- uses: aws-actions/closed-issue-message@8b6324312193476beecf11f8e8539d73a3553bf4
with:
# These inputs are both required
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/handle-stale-discussions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
discussion_comment:
types: [created]

permissions:
contents: read

jobs:
handle-stale-discussions:
name: Handle stale discussions
Expand All @@ -13,7 +16,7 @@ jobs:
discussions: write
steps:
- name: Stale discussions action
uses: aws-github-ops/handle-stale-discussions@v1
uses: aws-github-ops/handle-stale-discussions@a98e47e10f9a5d4ed08ffb27b7a19454302f9a43
with:
# This will close stale-discussions as outdated instead of answered
close-stale-as-answered: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Set up Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: 3.9
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
name: Stale issue job
steps:
- uses: aws-actions/stale-issue-cleanup@v6
- uses: aws-actions/stale-issue-cleanup@f290bcce1d77c9abc0357b7faed3c1c7c2f7d78f
with:
issue-types: issues
stale-issue-message: Greetings! It looks like this issue hasn’t been
Expand Down

0 comments on commit 1dd9fc0

Please sign in to comment.