Skip to content

Commit d40739f

Browse files
committed
ci: pin actions to commit SHAs and add Dependabot config
- Pin actions/checkout and ruby/setup-ruby to full commit SHAs with version comments (pinact) to guard against tag-hijack supply-chain attacks; Dependabot keeps the pins fresh (weekly, 8-day cooldown, minor/patch grouped). - Document why redmine_gtt is intentionally checked out from its moving `next` integration branch. Addresses Copilot review on PR #72.
1 parent 511a42d commit d40739f

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
# Defer brand-new releases to reduce supply-chain risk from
8+
# freshly published (potentially hijacked) action versions.
9+
cooldown:
10+
default-days: 8
11+
groups:
12+
github-actions:
13+
patterns: ["*"]
14+
update-types: ["minor", "patch"]

.github/workflows/test-postgis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,32 @@ jobs:
5151

5252
steps:
5353
- name: Checkout Redmine
54-
uses: actions/checkout@v6
54+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
5555
with:
5656
repository: redmine/redmine
5757
ref: ${{ matrix.redmine_version }}
5858
path: redmine
5959

6060
# redmine_gtt is a hard dependency: this plugin uses RedmineGtt::Conversions
6161
# for geometry and relies on the `geom` column its migration adds to issues.
62+
# It is checked out from `next` on purpose: that is redmine_gtt's
63+
# integration branch, and this plugin must stay compatible with it.
64+
# A CI break caused by a redmine_gtt change is a signal we want early,
65+
# not noise to be pinned away.
6266
- name: Checkout redmine_gtt (dependency)
63-
uses: actions/checkout@v6
67+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
6468
with:
6569
repository: gtt-project/redmine_gtt
6670
ref: next
6771
path: redmine/plugins/redmine_gtt
6872

6973
- name: Checkout Plugin
70-
uses: actions/checkout@v6
74+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
7175
with:
7276
path: redmine/plugins/${{ env.PLUGIN_NAME }}
7377

7478
- name: Set up Ruby
75-
uses: ruby/setup-ruby@v1
79+
uses: ruby/setup-ruby@a30dfa457ad68707b8b910ac3a244714b61c0626 # v1.320.0
7680
with:
7781
ruby-version: ${{ matrix.ruby_version }}
7882

0 commit comments

Comments
 (0)