Skip to content

Commit 0ffd969

Browse files
committed
Add workflows for Dependabot and action pinning
1 parent a176f5e commit 0ffd969

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.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+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 1
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Validate GitHub Action pinning
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/**"
7+
push:
8+
branches:
9+
- "qa/**"
10+
- "stable/**"
11+
paths:
12+
- ".github/workflows/**"
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
enforce-pinning:
19+
name: Enforce commit SHA pinning
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Check out repository
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+
- name: Ensure SHA-pinned Actions
25+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@9e9574ef04ea69da568d6249bd69539ccc704e74 # v4.0.0

0 commit comments

Comments
 (0)