Skip to content

Commit 3e4e0b1

Browse files
authored
[DND-2101] Pin actions to commit SHAs, declare token permissions, onboard Renovate (#4)
1 parent b779b3a commit 3e4e0b1

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/renovate.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["github>comet-ml/renovate-config"]
4+
}

‎.github/workflows/pr-title-validation.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Pull Request title validation
22
on:
33
pull_request:
44
types: [opened, edited, synchronize, reopened]
5+
permissions:
6+
contents: read
57
jobs:
68
branch-naming-rules:
79
runs-on: ubuntu-latest
810
steps:
9-
- uses: deepakputhraya/action-pr-title@master
11+
- uses: deepakputhraya/action-pr-title@077bddd7bdabd0d2b1b25ed0754c7e62e184d7ee # master
1012
with:
1113
regex: '(^\[[A-Z]{2,3}-[0-9]{1,10}]|^\[NA])' # PR title should start with [CM-1234] OR [NA] (if you dont have a ticket, you should avoid this)

‎.github/workflows/release-drafter.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ on:
66
branches:
77
- master
88

9+
permissions:
10+
contents: write # create/update the draft release
11+
pull-requests: read # read merged PRs for the changelog
12+
913
jobs:
1014
update_release_draft:
1115
runs-on: ubuntu-latest
1216
steps:
1317
# Drafts your next Release notes as Pull Requests are merged into "master"
14-
- uses: release-drafter/release-drafter@v5
18+
- uses: release-drafter/release-drafter@d1a19e60e81a7e650d00a7de9277f87e439117ea # v7
1519
env:
1620
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)