potiuk commented on code in PR #72775: URL: https://github.com/apache/airflow/pull/72775#discussion_r3977015323
########## .github/workflows/java-sdk-dependabot-verification-metadata.yml: ########## @@ -0,0 +1,109 @@ +# 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. +# +# When Dependabot bumps a Gradle dependency under java-sdk/, it edits the build +# script but cannot regenerate java-sdk/gradle/verification-metadata.xml (Gradle +# dependency verification, verify-metadata=true). The new artifacts then have no +# trusted checksum and `./gradlew build` fails in java-sdk-release-verify.yml. +# +# This is a MANUAL job: a committer runs it from the Actions tab (or `gh workflow +# run`) with the PR number. It checks that PR out, regenerates the metadata, and +# pushes the refreshed file back onto the PR branch. Being workflow_dispatch, it +# runs with the committer's own trigger and the normal repo GITHUB_TOKEN -- no +# standing Dependabot secret or pull_request_target write token required. +--- +name: Java SDK refresh verification metadata + +on: # yamllint disable-line rule:truthy + workflow_dispatch: + inputs: + pr_number: + description: "PR number whose java-sdk verification metadata to refresh" + required: true + type: string + +permissions: + contents: read + +concurrency: + group: java-sdk-refresh-verification-metadata-${{ github.event.inputs.pr_number }} + cancel-in-progress: true + +jobs: + refresh-verification-metadata: + name: Refresh Gradle verification-metadata.xml + runs-on: ubuntu-latest Review Comment: ```suggestion runs-on: ubuntu-slim ``` -- 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]
