rusackas commented on code in PR #281:
URL: 
https://github.com/apache/superset-kubernetes-operator/pull/281#discussion_r3810814652


##########
.github/workflows/sync-tool-checksums.yaml:
##########
@@ -0,0 +1,66 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Sync tool checksums
+
+# Keeps hack/tool-checksums.txt in sync with the pinned rumdl / operator-sdk /
+# opm / helm-unittest versions. The in-repo download recipes fail closed when a
+# version has no matching pin, so a bump without a resync surfaces at use time;
+# this scheduled job additionally regenerates the pins and opens a PR so the
+# file cannot drift silently (mirrors the supported-k8s auto-sync).
+
+on:
+  schedule:
+    - cron: '0 6 * * *'   # daily at 06:00 UTC
+  workflow_dispatch:
+
+permissions:
+  contents: read
+
+jobs:
+  sync:
+    name: Sync tool-checksums.txt
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+      pull-requests: write
+    steps:
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 
v7.0.1
+        with:
+          persist-credentials: false
+      - name: Regenerate hack/tool-checksums.txt from the pinned versions
+        run: make sync-tool-checksums
+      - name: Open or update PR if anything changed
+        uses: 
peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # 
v8.1.1

Review Comment:
   Might want to make sure this is on the infra allow list, and that we're 
beholden to the list . Probably the case, but just sayin'



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to