-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
f2dae39
commit f824519
Showing
11 changed files
with
78 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/check_values_schema.yaml.template | ||
# | ||
name: 'Values and schema' | ||
on: | ||
|
@@ -21,7 +23,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/create_release.yaml.template | ||
# | ||
name: Create Release | ||
on: | ||
|
@@ -52,7 +54,7 @@ jobs: | |
echo "version=${version}" >> $GITHUB_OUTPUT | ||
- name: Checkout code | ||
if: ${{ steps.get_version.outputs.version != '' }} | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
- name: Get project.go path | ||
id: get_project_go_path | ||
if: ${{ steps.get_version.outputs.version != '' }} | ||
|
@@ -101,7 +103,7 @@ jobs: | |
tarball_binary_path: "*/src/${binary}" | ||
smoke_test: "${binary} --version" | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
- name: Update project.go | ||
id: update_project_go | ||
env: | ||
|
@@ -161,7 +163,7 @@ jobs: | |
upload_url: ${{ steps.create_gh_release.outputs.upload_url }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
ref: ${{ github.sha }} | ||
- name: Ensure correct version in project.go | ||
|
@@ -214,7 +216,7 @@ jobs: | |
tarball_binary_path: "*/src/${binary}" | ||
smoke_test: "${binary} --version" | ||
- name: Check out the repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
fetch-depth: 0 # Clone the whole history, not just the most recent commit. | ||
- name: Fetch all tags and branches | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template | ||
# | ||
name: Create Release PR | ||
on: | ||
|
@@ -152,7 +154,7 @@ jobs: | |
binary: "architect" | ||
version: "6.11.0" | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
ref: ${{ needs.gather_facts.outputs.branch }} | ||
- name: Prepare release changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/helm_render_diff.yaml.template | ||
# | ||
name: Compare Helm Rendering | ||
|
||
|
@@ -21,7 +23,7 @@ jobs: | |
if: github.event_name == 'pull_request' | ||
steps: | ||
- name: Find suspend comment | ||
uses: peter-evans/find-comment@d5fe37641ad8451bdd80312415672ba26c86575e # v3.0.0 | ||
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0 | ||
continue-on-error: true | ||
id: fc | ||
with: | ||
|
@@ -45,9 +47,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: github.event_name == 'pull_request' && needs.check-cmp-state.outputs.suspend_comment_id == 0 && needs.check-cmp-state.outputs.suspend_diffs_printing_from_pr_body == 'false' | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
- name: install helm | ||
uses: azure/setup-helm@b7246b12e77f7134dc2d460a3d5bad15bbe29390 # v4.1.0 | ||
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 | ||
with: | ||
version: ${{ env.helm_ver }} | ||
- run: which helm | ||
|
@@ -79,7 +81,7 @@ jobs: | |
helm template -n org-giantswarm -f "helm/${{ github.event.repository.name }}/ci/ci-values.yaml" -f "${test_file_path}" "helm/${{ github.event.repository.name }}" > "/tmp/${test_file_path}/render-new.yaml" | ||
done | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
ref: "${{ github.event.repository.default_branch }}" | ||
path: 'old' | ||
|
@@ -100,9 +102,10 @@ jobs: | |
done | ||
- name: get the diffs | ||
uses: mathiasvr/command-output@34408ea3d0528273faff3d9e201761ae96106cd0 # v2.0.0 | ||
id: diff | ||
with: | ||
run: | | ||
marker="=== No differences at all ===" | ||
( | ||
found_differences= | ||
first=1 | ||
for test_file_path in helm/${{ github.event.repository.name }}/ci/test-*-values.yaml; do | ||
|
@@ -113,15 +116,36 @@ jobs: | |
echo | ||
fi | ||
echo "=== Differences when rendered with values file ${test_file_path} ===" | ||
dyff between -s -i -b -g "/tmp/${test_file_path}/render-old.yaml" "/tmp/${test_file_path}/render-new.yaml" && echo "No difference" || { res=$?; found_differences=1; if [[ $res -eq 255 ]]; then echo "Diff error"; fi; } | ||
dyff between --set-exit-code --ignore-order-changes --omit-header --use-go-patch-style "/tmp/${test_file_path}/render-old.yaml" "/tmp/${test_file_path}/render-new.yaml" && echo "No difference" || { res=$?; found_differences=1; if [[ $res -eq 255 ]]; then echo "Diff error"; fi; } | ||
done | ||
if [ -z "${found_differences}" ]; then | ||
echo | ||
echo "=== No differences at all ===" | ||
echo | ||
echo "${marker}" | ||
fi | ||
) > /tmp/diffs | ||
( | ||
if ! grep -qF "${marker}" /tmp/diffs ; then | ||
echo "**There were differences in the rendered Helm template, please check! ⚠️**" | ||
else | ||
echo "There were no differences in the rendered Helm template." | ||
fi | ||
echo | ||
echo "<details>" | ||
echo "<summary>Output</summary>" | ||
echo "<!-- mandatory empty line -->" | ||
echo "" | ||
echo '```' | ||
cat /tmp/diffs | ||
echo '```' | ||
echo "</details>" | ||
echo "<!-- mandatory empty line -->" | ||
) > /tmp/comment-body | ||
- name: Find diff comment | ||
uses: peter-evans/find-comment@d5fe37641ad8451bdd80312415672ba26c86575e # v3.0.0 | ||
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0 | ||
continue-on-error: true | ||
id: fc | ||
with: | ||
|
@@ -136,37 +160,8 @@ jobs: | |
type: delete | ||
comment_id: ${{ steps.fc.outputs.comment-id }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create comment in case of differences | ||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 | ||
if: "!contains(steps.diff.outputs.stdout, '=== No differences at all ===')" | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
**There were differences in the rendered Helm template, please check! ⚠️** | ||
<details> | ||
<summary>Output</summary> | ||
<!-- mandatory empty line --> | ||
``` | ||
${{ steps.diff.outputs.stdout }} | ||
``` | ||
</details> | ||
<!-- mandatory empty line --> | ||
- name: Create comment in case of no differences | ||
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 | ||
if: "contains(steps.diff.outputs.stdout, '=== No differences at all ===')" | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
There were no differences in the rendered Helm template. | ||
<details> | ||
<summary>Output</summary> | ||
<!-- mandatory empty line --> | ||
``` | ||
${{ steps.diff.outputs.stdout }} | ||
``` | ||
</details> | ||
<!-- mandatory empty line --> | ||
body-path: /tmp/comment-body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/cluster_app_documentation_validation.yaml.template | ||
# | ||
|
||
# This workflow validates the documentation generated from the JSON schema of the cluster-app | ||
|
@@ -32,7 +34,7 @@ jobs: | |
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
- name: "Run 'make generate-docs' and check for differences" | ||
run: | | ||
make generate-docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/gitleaks.yaml.template | ||
# | ||
name: gitleaks | ||
|
||
|
@@ -10,7 +12,7 @@ jobs: | |
gitleaks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
fetch-depth: '0' | ||
- name: gitleaks-action | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/cluster_app_schema_validation.yaml.template | ||
# | ||
|
||
# This workflow validates the JSON schema of the cluster-app, which is located in | ||
|
@@ -26,7 +28,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
- name: Run schemalint | ||
id: run-schemalint | ||
uses: giantswarm/schemalint/actions/verify-helm-schema@79be66ce4ed5c6154615f68e9b97ab3110b62968 # v2.5.1 | ||
|
@@ -37,7 +39,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
|
||
- name: Run helm-values-gen | ||
id: run-helm-values-gen | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/run_ossf_scorecard.yaml.template | ||
# | ||
|
||
# This workflow uses actions that are not certified by GitHub. They are provided | ||
|
@@ -38,7 +40,7 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
persist-credentials: false | ||
|
||
|
@@ -65,14 +67,14 @@ jobs: | |
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | ||
# format to the repository Actions tab. | ||
- name: "Upload artifact" | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: SARIF file | ||
path: results.sarif | ||
retention-days: 5 | ||
|
||
# Upload the results to GitHub's code scanning dashboard. | ||
- name: "Upload to code-scanning" | ||
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9 | ||
uses: github/codeql-action/upload-sarif@8f596b4ae3cb3c588a5c46780b86dd53fef16c52 # v3.25.2 | ||
with: | ||
sarif_file: results.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/makefile/internal/file/Makefile.template | ||
# | ||
|
||
include Makefile.*.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/makefile/internal/file/Makefile.gen.app.mk.template | ||
# | ||
|
||
##@ App | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected] | ||
# devctl | ||
# | ||
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/makefile/internal/file/Makefile.gen.cluster_app.mk.template | ||
# | ||
|
||
##@ Schema | ||
|