Skip to content

Commit eec9185

Browse files
authored
Merge pull request #243 from tacaswell/harden_gha
CI: Harden GHA configuration
2 parents 319666b + a0f064e commit eec9185

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/" # Location of your workflow files
5+
schedule:
6+
interval: "monthly" # Options: daily, weekly, monthly

.github/workflows/test_and_publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CI
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/update-changelog.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# the git repo of the changes.
44

55
name: "Update Changelog"
6+
permissions:
7+
contents: write
68

79
on:
810
release:
@@ -17,16 +19,17 @@ jobs:
1719
uses: actions/checkout@v2
1820
with:
1921
ref: main
22+
persist-credentials: true
2023

2124
- name: Update Changelog
22-
uses: stefanzweifel/changelog-updater-action@v1
25+
uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1
2326
with:
2427
release-notes: ${{ github.event.release.body }}
2528
latest-version: ${{ github.event.release.name }}
2629
path-to-changelog: CHANGES.md
2730

2831
- name: Commit updated CHANGELOG
29-
uses: stefanzweifel/git-auto-commit-action@v4
32+
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4
3033
with:
3134
branch: main
3235
commit_message: Update CHANGELOG

0 commit comments

Comments
 (0)