Skip to content

Commit 576f07f

Browse files
architectbotactions-useriuriaranda
authored
Align files (#237)
Co-authored-by: github-actions <[email protected]> Co-authored-by: iuri <[email protected]>
1 parent f3707bd commit 576f07f

8 files changed

+60
-20
lines changed

.github/workflows/pre_commit_go.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
1414
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
1515
with:
16-
go-version: "1.22"
16+
go-version: "1.23"
1717
- name: Install goimports
1818
run: |
1919
go install golang.org/x/tools/cmd/goimports@latest
2020
- name: Install golangci-lint
2121
env:
22-
GOLANGCI_LINT_VERSION: "v1.59.0"
22+
GOLANGCI_LINT_VERSION: "v1.60.3"
2323
run: |
2424
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
2525
sudo sh -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION}
2626
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
27+
env:
28+
GOGC: "20" # keep golangci-lint memory usage in check

.github/workflows/zz_generated.check_values_schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/1a381db95a01773e471818a4ce56ad16ad5d6111/pkg/gen/input/workflows/internal/file/check_values_schema.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/8960b8810d2fdb97543d84baa8b50ffa40da26a9/pkg/gen/input/workflows/internal/file/check_values_schema.yaml.template
66
#
77
name: 'Values and schema'
88
on:
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727
with:
2828
fetch-depth: 0
2929

.github/workflows/zz_generated.create_release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/c90dd09846d2e87f1bad62d2089405b78da11a82/pkg/gen/input/workflows/internal/file/create_release.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/8960b8810d2fdb97543d84baa8b50ffa40da26a9/pkg/gen/input/workflows/internal/file/create_release.yaml.template
66
#
77
name: Create Release
88
on:
@@ -54,7 +54,7 @@ jobs:
5454
echo "version=${version}" >> $GITHUB_OUTPUT
5555
- name: Checkout code
5656
if: ${{ steps.get_version.outputs.version != '' }}
57-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
- name: Get project.go path
5959
id: get_project_go_path
6060
if: ${{ steps.get_version.outputs.version != '' }}
@@ -103,7 +103,7 @@ jobs:
103103
tarball_binary_path: "*/src/${binary}"
104104
smoke_test: "${binary} --version"
105105
- name: Checkout code
106-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
106+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
107107
- name: Update project.go
108108
id: update_project_go
109109
env:
@@ -163,7 +163,7 @@ jobs:
163163
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
164164
steps:
165165
- name: Checkout code
166-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
166+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
167167
with:
168168
ref: ${{ github.sha }}
169169
- name: Ensure correct version in project.go
@@ -216,7 +216,7 @@ jobs:
216216
tarball_binary_path: "*/src/${binary}"
217217
smoke_test: "${binary} --version"
218218
- name: Check out the repository
219-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
219+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
220220
with:
221221
fetch-depth: 0 # Clone the whole history, not just the most recent commit.
222222
- name: Fetch all tags and branches

.github/workflows/zz_generated.create_release_pr.yaml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/7345de0273fb431a392dc15f53961b523dba2b5e/pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/43bd088e6bf64525a8e566fc1b0f4761a293afc4/pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template
66
#
77
name: Create Release PR
88
on:
@@ -136,12 +136,50 @@ jobs:
136136
else
137137
echo "skip=false" >> $GITHUB_OUTPUT
138138
fi
139+
prepare_release_pr:
140+
name: Prepare release PR for Backstage project
141+
runs-on: ubuntu-22.04
142+
needs:
143+
- gather_facts
144+
if: ${{ needs.gather_facts.outputs.skip != 'true' && github.repository == 'giantswarm/backstage' }}
145+
steps:
146+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
147+
with:
148+
ref: ${{ needs.gather_facts.outputs.branch }}
149+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
150+
with:
151+
node-version: '20'
152+
- uses: borales/actions-yarn@3766bb1335b98fb13c60eaf358fe20811b730a88 # v5.0.0
153+
with:
154+
cmd: install
155+
- name: Prepare release PR
156+
uses: borales/actions-yarn@3766bb1335b98fb13c60eaf358fe20811b730a88 # v5.0.0
157+
with:
158+
cmd: release
159+
env:
160+
RELEASE_VERSION: ${{ needs.gather_facts.outputs.version }}
161+
- name: Set up git identity
162+
run: |
163+
git config --local user.email "[email protected]"
164+
git config --local user.name "taylorbot"
165+
- name: Create commit
166+
env:
167+
version: "${{ needs.gather_facts.outputs.version }}"
168+
run: |
169+
git add -A
170+
git commit -m "Prepare release v${{ env.version }}"
171+
- name: Push changes
172+
env:
173+
remote_repo: "https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git"
174+
run: |
175+
git push "${remote_repo}" HEAD:${{ needs.gather_facts.outputs.branch }}
139176
create_release_pr:
140177
name: Create release PR
141178
runs-on: ubuntu-22.04
142179
needs:
143180
- gather_facts
144-
if: ${{ needs.gather_facts.outputs.skip != 'true' }}
181+
- prepare_release_pr
182+
if: ${{ always() && needs.gather_facts.outputs.skip != 'true' }}
145183
env:
146184
architect_flags: "--organisation ${{ github.repository_owner }} --project ${{ needs.gather_facts.outputs.repo_name }}"
147185
steps:
@@ -154,7 +192,7 @@ jobs:
154192
binary: "architect"
155193
version: "6.17.0"
156194
- name: Checkout code
157-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
195+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
158196
with:
159197
ref: ${{ needs.gather_facts.outputs.branch }}
160198
- name: Prepare release changes

.github/workflows/zz_generated.gitleaks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/1a381db95a01773e471818a4ce56ad16ad5d6111/pkg/gen/input/workflows/internal/file/gitleaks.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/8960b8810d2fdb97543d84baa8b50ffa40da26a9/pkg/gen/input/workflows/internal/file/gitleaks.yaml.template
66
#
77
name: gitleaks
88

@@ -12,7 +12,7 @@ jobs:
1212
gitleaks:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
with:
1717
fetch-depth: '0'
1818
- name: gitleaks-action

.github/workflows/zz_generated.run_ossf_scorecard.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/515bdf66b25f68db4466f9fd8fa6104793785b78/pkg/gen/input/workflows/internal/file/run_ossf_scorecard.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/0a98d52f349ee9221b336515b877cd4a728ea9ca/pkg/gen/input/workflows/internal/file/run_ossf_scorecard.yaml.template
66
#
77

88
# This workflow uses actions that are not certified by GitHub. They are provided
@@ -40,7 +40,7 @@ jobs:
4040

4141
steps:
4242
- name: "Checkout code"
43-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
43+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
with:
4545
persist-credentials: false
4646

@@ -67,14 +67,14 @@ jobs:
6767
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6868
# format to the repository Actions tab.
6969
- name: "Upload artifact"
70-
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
70+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
7171
with:
7272
name: SARIF file
7373
path: results.sarif
7474
retention-days: 5
7575

7676
# Upload the results to GitHub's code scanning dashboard.
7777
- name: "Upload to code-scanning"
78-
uses: github/codeql-action/upload-sarif@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
78+
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
7979
with:
8080
sarif_file: results.sarif

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
args: [ --format=json ]
99

1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.6.0
11+
rev: v5.0.0
1212
hooks:
1313
- id: check-added-large-files
1414
# check for unresolved merge conflicts

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2016 - 2024 Giant Swarm GmbH
189+
Copyright 2016 - 2025 Giant Swarm GmbH
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)