Skip to content

Commit b7d3846

Browse files
Align files (#375)
Co-authored-by: github-actions <action@github.com>
1 parent 0900702 commit b7d3846

7 files changed

+61
-16
lines changed

.github/workflows/zz_generated.check_values_schema.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/ad0a25fbf301b2513e169ec964a8785d28f75be4/pkg/gen/input/workflows/internal/file/check_values_schema.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/87f30fd3b955a0daf6017834a776c222d93a207c/pkg/gen/input/workflows/internal/file/check_values_schema.yaml.template
66
#
77

88
name: 'Values and schema'
@@ -17,6 +17,10 @@ on:
1717
- 'helm/**/values.schema.json' # schema
1818
- 'helm/**/ci/ci-values.yaml' # overrides for CI (can contain required entries)
1919

20+
permissions: {}
21+
2022
jobs:
2123
check:
2224
uses: giantswarm/github-workflows/.github/workflows/chart-values.yaml@main
25+
permissions:
26+
contents: read

.github/workflows/zz_generated.create_release.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/da653ffe50bb61d247594e9b842bb36fdac7bb18/pkg/gen/input/workflows/internal/file/create_release.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/72df19d0bff1cc8a679b00fdb4ac4e2504f8962a/pkg/gen/input/workflows/internal/file/create_release.yaml.template
66
#
77
name: Create Release
88
on:
@@ -14,6 +14,9 @@ on:
1414
- 'release-v*.*.x'
1515
# "!" negates previous positive patterns so it has to be at the end.
1616
- '!release-v*.x.x'
17+
18+
permissions: {}
19+
1720
jobs:
1821
debug_info:
1922
name: Debug info
@@ -27,6 +30,8 @@ jobs:
2730
gather_facts:
2831
name: Gather facts
2932
runs-on: ubuntu-22.04
33+
permissions:
34+
contents: read
3035
outputs:
3136
project_go_path: ${{ steps.get_project_go_path.outputs.path }}
3237
ref_version: ${{ steps.ref_version.outputs.refversion }}
@@ -54,7 +59,7 @@ jobs:
5459
echo "version=${version}" >> $GITHUB_OUTPUT
5560
- name: Checkout code
5661
if: ${{ steps.get_version.outputs.version != '' }}
57-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
62+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5863
- name: Get project.go path
5964
id: get_project_go_path
6065
if: ${{ steps.get_version.outputs.version != '' }}
@@ -85,6 +90,8 @@ jobs:
8590
update_project_go:
8691
name: Update project.go
8792
runs-on: ubuntu-22.04
93+
permissions:
94+
contents: read
8895
if: ${{ needs.gather_facts.outputs.version != '' && needs.gather_facts.outputs.project_go_path != '' && needs.gather_facts.outputs.ref_version != 'true' }}
8996
needs:
9097
- gather_facts
@@ -103,7 +110,9 @@ jobs:
103110
tarball_binary_path: "*/src/${binary}"
104111
smoke_test: "${binary} --version"
105112
- name: Checkout code
106-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
113+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
114+
with:
115+
persist-credentials: false
107116
- name: Update project.go
108117
id: update_project_go
109118
env:
@@ -156,16 +165,19 @@ jobs:
156165
create_release:
157166
name: Create release
158167
runs-on: ubuntu-22.04
168+
permissions:
169+
contents: read
159170
needs:
160171
- gather_facts
161172
if: ${{ needs.gather_facts.outputs.version }}
162173
outputs:
163174
upload_url: ${{ steps.create_gh_release.outputs.upload_url }}
164175
steps:
165176
- name: Checkout code
166-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
177+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
167178
with:
168179
ref: ${{ github.sha }}
180+
persist-credentials: false
169181
- name: Ensure correct version in project.go
170182
if: ${{ needs.gather_facts.outputs.project_go_path != '' && needs.gather_facts.outputs.ref_version != 'true' }}
171183
run: |
@@ -194,16 +206,17 @@ jobs:
194206
- name: Create release
195207
id: create_gh_release
196208
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
197-
env:
198-
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}"
199209
with:
200210
body: ${{ steps.changelog_reader.outputs.changes }}
201211
tag: "v${{ needs.gather_facts.outputs.version }}"
212+
token: ${{ secrets.TAYLORBOT_GITHUB_ACTION }}
202213
skipIfReleaseExists: true
203214

204215
create-release-branch:
205216
name: Create release branch
206217
runs-on: ubuntu-22.04
218+
permissions:
219+
contents: write
207220
needs:
208221
- gather_facts
209222
if: ${{ needs.gather_facts.outputs.version }}
@@ -217,7 +230,7 @@ jobs:
217230
tarball_binary_path: "*/src/${binary}"
218231
smoke_test: "${binary} --version"
219232
- name: Check out the repository
220-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
233+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
221234
with:
222235
fetch-depth: 0 # Clone the whole history, not just the most recent commit.
223236
- name: Fetch all tags and branches

.github/workflows/zz_generated.create_release_pr.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/ad0a25fbf301b2513e169ec964a8785d28f75be4/pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/87f30fd3b955a0daf6017834a776c222d93a207c/pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template
66
#
77
name: Create Release PR
88
on:
@@ -30,9 +30,13 @@ on:
3030
required: true
3131
type: string
3232

33+
permissions: {}
34+
3335
jobs:
3436
publish:
3537
uses: giantswarm/github-workflows/.github/workflows/create-release-pr.yaml@main
38+
permissions:
39+
contents: read
3640
with:
3741
branch: ${{ inputs.branch }}
3842
secrets:

.github/workflows/zz_generated.fix_vulnerabilities.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/251fa7d9bd403e23321bad6714c1e26c375fedf3/pkg/gen/input/workflows/internal/file/fix_vulnerabilities.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/6ff4d7652142f59436c1d1ef925f8d687e1ac671/pkg/gen/input/workflows/internal/file/fix_vulnerabilities.yaml.template
66
#
77

88
name: Fix Go vulnerabilities
@@ -16,12 +16,21 @@ on:
1616
description: Branch on which to fix vulnerabilities
1717
required: true
1818
type: string
19+
log_level:
20+
description: Log Level (info / error / debug)
21+
default: "info"
22+
type: string
23+
24+
permissions: {}
1925

2026
jobs:
2127
fix:
2228
uses: giantswarm/github-workflows/.github/workflows/fix-vulnerabilities.yaml@main
29+
permissions:
30+
contents: read
2331
with:
2432
branch: ${{ inputs.branch || github.ref }}
33+
log_level: ${{ inputs.log_level || 'info' }}
2534
secrets:
2635
HERALD_APP_ID: ${{ secrets.HERALD_APP_ID }}
2736
HERALD_APP_KEY: ${{ secrets.HERALD_APP_KEY }}

.github/workflows/zz_generated.gitleaks.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/ad0a25fbf301b2513e169ec964a8785d28f75be4/pkg/gen/input/workflows/internal/file/gitleaks.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/87f30fd3b955a0daf6017834a776c222d93a207c/pkg/gen/input/workflows/internal/file/gitleaks.yaml.template
66
#
77
name: gitleaks
88

99
on:
1010
- pull_request
1111

12+
permissions: {}
13+
1214
jobs:
1315
publish:
1416
uses: giantswarm/github-workflows/.github/workflows/gitleaks.yaml@main
17+
permissions:
18+
contents: read

.github/workflows/zz_generated.run_ossf_scorecard.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# devctl
44
#
5-
# https://github.com/giantswarm/devctl/blob/ad0a25fbf301b2513e169ec964a8785d28f75be4/pkg/gen/input/workflows/internal/file/run_ossf_scorecard.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/4897b6ea0f98cfba54f8d3003f5bdcefb968a7b5/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
@@ -24,8 +24,18 @@ on:
2424
- master
2525
workflow_dispatch: {}
2626

27+
permissions: {}
28+
2729
jobs:
2830
analysis:
2931
uses: giantswarm/github-workflows/.github/workflows/ossf-scorecard.yaml@main
32+
permissions:
33+
contents: read
34+
actions: read
35+
issues: read
36+
pull-requests: read
37+
checks: read
38+
security-events: write
39+
id-token: write
3040
secrets:
3141
scorecard_token: ${{ secrets.SCORECARD_TOKEN }}

.github/workflows/zz_generated.validate_changelog.yaml

Lines changed: 5 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/ad0a25fbf301b2513e169ec964a8785d28f75be4/pkg/gen/input/workflows/internal/file/validate_changelog.yaml.template
5+
# https://github.com/giantswarm/devctl/blob/87f30fd3b955a0daf6017834a776c222d93a207c/pkg/gen/input/workflows/internal/file/validate_changelog.yaml.template
66
#
77
name: Validate changelog
88

@@ -12,10 +12,11 @@ on:
1212
paths:
1313
- 'CHANGELOG.md'
1414

15-
permissions:
16-
contents: read
17-
pull-requests: write
15+
permissions: {}
1816

1917
jobs:
2018
validate-changelog:
2119
uses: giantswarm/github-workflows/.github/workflows/validate-changelog.yaml@main
20+
permissions:
21+
contents: read
22+
pull-requests: write

0 commit comments

Comments
 (0)