Skip to content

Commit 919fdb3

Browse files
simonkurtz-MSFTgithub-actions[bot]Copilot
authored
fix: pin GitHub Actions to immutable SHA hashes to prevent supply chain attacks (#1088)
* chore: publish from staged * fix: pin GitHub Actions to immutable SHA hashes to prevent supply chain attacks Co-authored-by: simonkurtz-MSFT <84809797+simonkurtz-MSFT@users.noreply.github.com> * chore: publish from staged * Clean plugins * Clean plugins * Clean plugins * Fix gem-team plugin * Reset README.plugins.md --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 10e7172 commit 919fdb3

13 files changed

Lines changed: 52 additions & 50 deletions

.github/workflows/check-line-endings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
check-line-endings:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1717

1818
- name: Check for CRLF line endings in markdown files
1919
run: |

.github/workflows/check-plugin-structure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1919

2020
- name: Check for materialized files in plugin directories
21-
uses: actions/github-script@v7
21+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
2222
with:
2323
script: |
2424
const { execSync } = require('child_process');

.github/workflows/check-pr-target.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Reject PR targeting main
16-
uses: actions/github-script@v7
16+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
1717
with:
1818
script: |
1919
const body = [

.github/workflows/codespell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
codespell:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1717

1818
- name: Check spelling with codespell
19-
uses: codespell-project/actions-codespell@v2
19+
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
2020
with:
2121
check_filenames: true
2222
check_hidden: false

.github/workflows/contributors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
pull-requests: write
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
with:
1919
fetch-depth: 0
2020

@@ -25,7 +25,7 @@ jobs:
2525
echo "version=${NODE_VERSION}" >> "$GITHUB_OUTPUT"
2626
2727
- name: Setup Node.js
28-
uses: actions/setup-node@v6
28+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2929
with:
3030
node-version: ${{ steps.node-version.outputs.version }}
3131

@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Create Pull Request
7373
if: steps.verify-changed-files.outputs.changed == 'true'
74-
uses: peter-evans/create-pull-request@v7
74+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11
7575
with:
7676
token: ${{ secrets.GITHUB_TOKEN }}
7777
commit-message: "docs: update contributors"

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v6
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
- name: Install gh-aw extension
2424
uses: github/gh-aw/actions/setup-cli@32b3a711a9ee97d38e3989c90af0385aff0066a7 # v0.57.2
2525
with:

.github/workflows/deploy-website.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2929
with:
3030
fetch-depth: 0 # Full history needed for git-based last updated dates
3131

3232
- name: Setup Node.js
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3434
with:
3535
node-version: "20"
3636
cache: "npm"
@@ -50,10 +50,10 @@ jobs:
5050
working-directory: ./website
5151

5252
- name: Setup Pages
53-
uses: actions/configure-pages@v5
53+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
5454

5555
- name: Upload artifact
56-
uses: actions/upload-pages-artifact@v3
56+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
5757
with:
5858
path: "./website/dist"
5959

@@ -67,4 +67,4 @@ jobs:
6767
steps:
6868
- name: Deploy to GitHub Pages
6969
id: deployment
70-
uses: actions/deploy-pages@v4
70+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout staged branch
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2121
with:
2222
ref: staged
2323
fetch-depth: 0
@@ -29,7 +29,7 @@ jobs:
2929
echo "version=${NODE_VERSION}" >> "$GITHUB_OUTPUT"
3030
3131
- name: Setup Node.js
32-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3333
with:
3434
node-version: ${{ steps.node-version.outputs.version }}
3535

.github/workflows/validate-agentic-workflows-pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2121
with:
2222
fetch-depth: 0
2323

@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Comment on PR
5151
if: failure()
52-
uses: marocchino/sticky-pull-request-comment@v2
52+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
5353
with:
5454
header: workflow-forbidden-files
5555
message: |
@@ -74,10 +74,10 @@ jobs:
7474
runs-on: ubuntu-latest
7575
steps:
7676
- name: Checkout code
77-
uses: actions/checkout@v4
77+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7878

7979
- name: Install gh-aw CLI
80-
uses: github/gh-aw/actions/setup-cli@main
80+
uses: github/gh-aw/actions/setup-cli@f7437f4f94c2bc86e7e6eca0f374e303e98bd66c # v0.61.1
8181

8282
- name: Compile workflow files
8383
id: compile
@@ -111,7 +111,7 @@ jobs:
111111
112112
- name: Comment on PR if compilation failed
113113
if: failure()
114-
uses: marocchino/sticky-pull-request-comment@v2
114+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
115115
with:
116116
header: workflow-validation
117117
message: |

.github/workflows/validate-readme.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2727
with:
2828
fetch-depth: 0
2929

3030
- name: Setup Node.js
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3232
with:
3333
node-version: "20"
3434

@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Comment on PR if files need updating
6868
if: steps.check-diff.outputs.status == 'failure' && github.event.pull_request.head.repo.permissions.push == true
69-
uses: marocchino/sticky-pull-request-comment@v2
69+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
7070
with:
7171
header: readme-validation
7272
message: |

0 commit comments

Comments
 (0)