Skip to content

Commit 97cc849

Browse files
authored
Merge pull request #14 from danfiedler-msft/danfiedler/pin-actions
Pin GitHub Actions to full-length commit SHAs
2 parents 88574d6 + 0c3fe96 commit 97cc849

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

‎.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/clone.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
WORKING_BRANCH: auto
1414
steps:
1515
- name: Get GitHub App token
16-
uses: actions/create-github-app-token@v1
16+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
1717
id: app-token
1818
with:
1919
app-id: ${{ secrets.PORTAL_QUICKSTART_SYNCHRONIZER_APP_ID }}
2020
private-key: ${{ secrets.PORTAL_QUICKSTART_SYNCHRONIZER_PRIVATE_KEY }}
2121
- name: Checkout source repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2323
with:
2424
repository: azure-samples/cosmos-db-nosql-rust-quickstart
2525
ref: main
2626
path: source
2727
- name: Checkout target repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2929
with:
3030
token: ${{ steps.app-token.outputs.token }}
3131
ref: ${{ github.head_ref }}

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1616
- name: Get GitHub App token
17-
uses: actions/create-github-app-token@v1
17+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
1818
id: app-token
1919
with:
2020
app-id: ${{ secrets.PORTAL_QUICKSTART_SYNCHRONIZER_APP_ID }}

0 commit comments

Comments
 (0)