Skip to content

Commit 79fa755

Browse files
{CI} Pin GitHub Actions to full-length commit SHAs (#34008)
1 parent 188ace5 commit 79fa755

11 files changed

Lines changed: 23 additions & 12 deletions

‎.github/actions/env-setup/action.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ runs:
1212
run: |
1313
echo start azdev env setup
1414
- name: Checkout CLI repo
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1616
with:
1717
fetch-depth: 0 # checkout all branches
1818
ref: ${{ github.event.pull_request.head.ref }}
1919
repository: ${{ github.event.pull_request.head.repo.full_name }} # checkout pull request branch
2020
- name: Set up Python 3.12
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3.1.4
2222
with:
2323
python-version: "3.12"
2424
- name: Install azdev

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
groups:
6+
github-actions:
7+
patterns: ["*"]
8+
schedule:
9+
interval: "weekly"
10+
cooldown:
11+
default-days: 7

‎.github/workflows/AddIssueComment.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Say thanks for the Issue
1111
steps:
1212
- name: comment on the issue
13-
uses: hasura/comment-progress@v2.3.0
13+
uses: hasura/comment-progress@146c635f3e325d478025e29e5043ec1c07c0e36c # v2.3.0
1414
with:
1515
github-token: ${{ secrets.CLI_BOT }}
1616
repository: 'Azure/azure-cli'

‎.github/workflows/AddIssueCommentWithLabel.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: Comment on issue
1313
steps:
1414
- name: Checkout comment message
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1616
with:
1717
sparse-checkout: |
1818
.github/template/non-security-comment.md
1919
- name: Comment on issue with no security label
20-
uses: mshick/add-pr-comment@v2
20+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
2121
with:
2222
repo-token: ${{ secrets.GITHUB_TOKEN }}
2323
message-id: issueNoSecurityCommentBot

‎.github/workflows/AzdevLinter.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: read
1616
steps:
1717
- name: Checkout CLI repo
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1919
with:
2020
fetch-depth: 1
2121
sparse-checkout: |

‎.github/workflows/AzdevStyle.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: read
1616
steps:
1717
- name: Checkout CLI repo
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1919
with:
2020
fetch-depth: 1
2121
sparse-checkout: |

‎.github/workflows/BlockPRMerge.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions: {}
1616
steps:
1717
- name: Check blocked labels
18-
uses: actions/github-script@v7
18+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
1919
with:
2020
script: |
2121
const labels = context.payload.pull_request.labels.map(label => label.name);

‎.github/workflows/CCOA.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Comment on PR
3838
if: steps.date_check.outputs.continue == 'true'
39-
uses: actions/github-script@v7
39+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
4040
with:
4141
github-token: ${{ secrets.GITHUB_TOKEN }}
4242
script: |

‎.github/workflows/GitHookNotice.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Introduce git hook in developer env
1616
steps:
1717
- name: Checkout git hook notice message
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1919
with:
2020
sparse-checkout: |
2121
.github/template/git-hooks-note.md

‎.github/workflows/RunIssueSentinel.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Run Issue Sentinel
13-
uses: Azure/issue-sentinel@v1
13+
uses: Azure/issue-sentinel@d1e433f192aa9442d44292b9b6d5d31419639aba # v1.6.1
1414
with:
1515
enable-similar-issues-scanning: true
1616
enable-security-issues-scanning: true

0 commit comments

Comments
 (0)