Skip to content

Commit c088409

Browse files
FelixTJDietrichTest
andauthored
fix(ci): make action pins resolvable by Renovate (#1578)
Co-authored-by: Test <test@example.com>
1 parent f2f39a7 commit c088409

9 files changed

Lines changed: 44 additions & 13 deletions

File tree

.github/actionlint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
paths:
2+
".github/workflows/**/*.{yml,yaml}":
3+
ignore:
4+
- 'unexpected key "queue" for "concurrency" section'

.github/workflows/cd-docs-teardown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
continue-on-error: true
3232

3333
- name: Update PR comment
34-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
34+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
3535
with:
3636
header: docs-preview
3737
message: |
3838
## 📚 Documentation Preview
3939
4040
~~Preview has been removed~~ (PR closed)
4141
- name: Update Storybook PR comment
42-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
42+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
4343
with:
4444
header: storybook-preview
4545
message: |

.github/workflows/cd-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- run: bun install --frozen-lockfile --ignore-scripts
9595
- name: Deploy to Surge.sh
9696
run: bun --bun surge ./docs-build ${{ env.PREVIEW_URL }} --token ${{ secrets.SURGE_TOKEN }}
97-
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
97+
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
9898
with:
9999
header: docs-preview
100100
message: |

.github/workflows/ci-security-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Trivy dependency scan
3333
id: dependencies
3434
continue-on-error: true
35-
uses: aquasecurity/trivy-action@97e0b3872f55f89b95b2f65b3dbab56962816478 # 0.34.2
35+
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
3636
with:
3737
scan-type: "fs"
3838
scan-ref: "."

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ jobs:
213213

214214
- name: Add Storybook preview to the pull request
215215
if: steps.storybook_preview.outcome == 'success'
216-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
216+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
217217
with:
218218
header: storybook-preview
219219
message: |

.github/workflows/cicd.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ jobs:
144144
ci-config:
145145
- '.github/workflows/**'
146146
- '.github/actions/**'
147+
- '.github/actionlint.yaml'
147148
docker-config:
148149
- '.github/workflows/ci-docker-build.yml'
149150
- '.github/workflows/reusable-docker-build.yml'
@@ -164,6 +165,30 @@ jobs:
164165
- '!webapp/src/**/*.stories.*'
165166
- '!webapp/src/test/**'
166167
168+
workflow-lint:
169+
name: "Workflow syntax"
170+
runs-on: ubuntu-latest
171+
needs: [detect-changes]
172+
if: |
173+
needs.detect-changes.outputs.should_skip != 'true' && (
174+
needs.detect-changes.outputs.ci-config == 'true' ||
175+
github.event_name != 'pull_request'
176+
)
177+
permissions:
178+
checks: write
179+
contents: read
180+
steps:
181+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
182+
with:
183+
persist-credentials: false
184+
185+
- uses: reviewdog/action-actionlint@dbe5299849118fd6f099ba563d263d770955a64a # v1.73.2
186+
with:
187+
actionlint_flags: -shellcheck=
188+
fail_level: error
189+
filter_mode: nofilter
190+
reporter: github-check
191+
167192
Quality:
168193
uses: ./.github/workflows/ci-quality-gates.yml
169194
needs: [detect-changes]
@@ -243,7 +268,7 @@ jobs:
243268
permissions:
244269
actions: read
245270
statuses: write
246-
needs: [detect-changes, Quality, Security, Test, Changesets, Docker]
271+
needs: [detect-changes, workflow-lint, Quality, Security, Test, Changesets, Docker]
247272
if: always()
248273
steps:
249274
- name: Generate workflow timeline
@@ -294,6 +319,7 @@ jobs:
294319
id: evaluate
295320
run: |
296321
echo "detect-changes: ${{ needs.detect-changes.result }}"
322+
echo "workflow-lint: ${{ needs.workflow-lint.result }}"
297323
echo "Quality: ${{ needs.Quality.result }}"
298324
echo "Security: ${{ needs.Security.result }}"
299325
echo "Test: ${{ needs.Test.result }}"
@@ -342,6 +368,7 @@ jobs:
342368
esac
343369
}
344370
371+
echo "| Workflow syntax | $(result_to_emoji '${{ needs.workflow-lint.result }}') |" >> $GITHUB_STEP_SUMMARY
345372
echo "| Quality | $(result_to_emoji '${{ needs.Quality.result }}') |" >> $GITHUB_STEP_SUMMARY
346373
echo "| Test | $(result_to_emoji '${{ needs.Test.result }}') |" >> $GITHUB_STEP_SUMMARY
347374
echo "| Changesets | $(result_to_emoji '${{ needs.Changesets.result }}') |" >> $GITHUB_STEP_SUMMARY

.github/workflows/cleanup-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
# Always overwrites the sticky comment, closed pull requests included: a torn-down preview
7575
# must never leave a live-looking link behind.
7676
if: always() && steps.tombstone.outcome == 'success'
77-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
77+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
7878
with:
7979
header: app-preview
8080
number: ${{ github.event.pull_request.number }}

.github/workflows/deploy-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Explain why the preview did not deploy
6565
if: steps.context.outputs.announce == 'true'
66-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
66+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
6767
with:
6868
header: app-preview
6969
number: ${{ steps.context.outputs.pr_number }}
@@ -111,7 +111,7 @@ jobs:
111111
112112
- name: Announce the deployment
113113
if: steps.github_deployment.outputs.deployment_id != ''
114-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
114+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
115115
with:
116116
header: app-preview
117117
number: ${{ steps.context.outputs.pr_number }}
@@ -168,7 +168,7 @@ jobs:
168168
169169
- name: Publish the preview link
170170
if: steps.finalize.outputs.final_state == 'success'
171-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
171+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
172172
with:
173173
header: app-preview
174174
number: ${{ steps.context.outputs.pr_number }}
@@ -186,7 +186,7 @@ jobs:
186186
steps.context.outputs.eligible == 'true' &&
187187
steps.recheck.outputs.opted_out != 'true' &&
188188
steps.wait.outputs.state != 'success'
189-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
189+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
190190
with:
191191
header: app-preview
192192
number: ${{ steps.context.outputs.pr_number }}

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
continue-on-error: true
4646

4747
- name: "Comment on PR with validation error"
48-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
48+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
4949
if: steps.commitlint.outcome == 'failure'
5050
with:
5151
header: pr-title-lint-error
@@ -59,7 +59,7 @@ jobs:
5959
> 📖 See [CONTRIBUTING.md](https://github.com/ls1intum/Hephaestus/blob/main/CONTRIBUTING.md) for commit message guidelines.
6060
6161
- name: "Remove error comment on success"
62-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2
62+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
6363
if: steps.commitlint.outcome == 'success'
6464
with:
6565
header: pr-title-lint-error

0 commit comments

Comments
 (0)