Skip to content

Commit 23db4db

Browse files
authored
Merge pull request #2 from danfiedler-msft/danfiedler/pin-actions
Pin GitHub Actions to full-length commit SHAs
2 parents b429883 + 7f7ae90 commit 23db4db

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
@@ -11,19 +11,19 @@ jobs:
1111
WORKING_BRANCH: auto
1212
steps:
1313
- name: Get GitHub App token
14-
uses: actions/create-github-app-token@v1
14+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
1515
id: app-token
1616
with:
1717
app-id: ${{ secrets.PORTAL_QUICKSTART_SYNCHRONIZER_APP_ID }}
1818
private-key: ${{ secrets.PORTAL_QUICKSTART_SYNCHRONIZER_PRIVATE_KEY }}
1919
- name: Checkout source repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2121
with:
2222
repository: azure-samples/cosmos-db-table-java-quickstart
2323
ref: main
2424
path: source
2525
- name: Checkout target repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2727
with:
2828
token: ${{ steps.app-token.outputs.token }}
2929
ref: ${{ github.head_ref }}

‎.github/workflows/release.yml‎

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

0 commit comments

Comments
 (0)