mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
Bumps the github-actions-updates group with 7 updates: | Package | From | To | | --- | --- | --- | | [actions/setup-java](https://github.com/actions/setup-java) | `6.0.1` | `6.1.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.1` | `7.0.2` | | [apache/infrastructure-actions/allowlist-check](https://github.com/apache/infrastructure-actions) | `1.0.1` | `1.0.4` | | [apache/infrastructure-actions/stash/save](https://github.com/apache/infrastructure-actions) | `1.0.1` | `1.0.2` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.38.3` | `4.39.0` | | [github/codeql-action/autobuild](https://github.com/github/codeql-action) | `4.38.3` | `4.39.0` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.38.3` | `4.39.0` | Updates `actions/setup-java` from 6.0.1 to 6.1.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/de7274f081f381c8f8158605e0321c36c376e2e6...b843ebf9b913146b38da2eaa7aeddf76074ae1ad) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v7.0.1...cf430e030ddbb5b0abf93d22962f4752f3646cd9) Updates `apache/infrastructure-actions/allowlist-check` from 1.0.1 to 1.0.4 - [Commits](https://github.com/apache/infrastructure-actions/compare/df54e48ff76152790f317934c691cfa7fd7a1a46...47b297bbe90f580139129bee531bd84bd95b7f5d) Updates `apache/infrastructure-actions/stash/save` from 1.0.1 to 1.0.2 - [Commits](https://github.com/apache/infrastructure-actions/compare/f1a487181effd0b216892001abdfb524442bb24d...7d3afde57801d8c9a2db9730c28ae4e036cc2ab9) Updates `github/codeql-action/init` from 4.38.3 to 4.39.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/24c54180a607b1449ed407dd24f251e4e9147c8d...6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee) Updates `github/codeql-action/autobuild` from 4.38.3 to 4.39.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/24c54180a607b1449ed407dd24f251e4e9147c8d...6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee) Updates `github/codeql-action/analyze` from 4.38.3 to 4.39.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/24c54180a607b1449ed407dd24f251e4e9147c8d...6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: apache/infrastructure-actions/allowlist-check dependency-version: 1.0.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: apache/infrastructure-actions/stash/save dependency-version: 1.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: github/codeql-action/init dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: github/codeql-action/autobuild dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: github/codeql-action/analyze dependency-version: 4.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
110 lines
4.7 KiB
YAML
110 lines
4.7 KiB
YAML
# 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-slim
|
|
permissions:
|
|
contents: write
|
|
pull-requests: read
|
|
steps:
|
|
# Resolve the PR's head branch (and guard that it lives in this repo --
|
|
# Dependabot pushes to apache/airflow itself, never a fork).
|
|
- name: Resolve PR head branch
|
|
id: pr
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
PR_NUMBER: ${{ github.event.inputs.pr_number }}
|
|
run: |
|
|
set -euo pipefail
|
|
repo="${{ github.repository }}"
|
|
head_repo=$(gh pr view "$PR_NUMBER" --repo "$repo" --json headRepositoryOwner \
|
|
--jq '.headRepositoryOwner.login')
|
|
head_ref=$(gh pr view "$PR_NUMBER" --repo "$repo" --json headRefName --jq '.headRefName')
|
|
if [ "$head_repo" != "${repo%%/*}" ]; then
|
|
echo "PR #$PR_NUMBER head is not in $repo (owner: $head_repo); refusing to push." >&2
|
|
exit 1
|
|
fi
|
|
echo "head_ref=$head_ref" >> "$GITHUB_OUTPUT"
|
|
- name: Checkout the PR head branch
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
ref: ${{ steps.pr.outputs.head_ref }}
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
# 11: main build toolchain, 17/21: example toolchains + Gradle runtime.
|
|
- name: Install JDK toolchains
|
|
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: |
|
|
11
|
|
17
|
|
21
|
|
- name: Regenerate verification-metadata.xml
|
|
working-directory: java-sdk
|
|
# `build` resolves the same configurations the release-verify check does,
|
|
# so every newly-bumped artifact gets a recorded sha256.
|
|
run: ./gradlew --no-daemon --write-verification-metadata sha256 build
|
|
- name: Commit and push if the metadata changed
|
|
env:
|
|
# Explicit token push: the checkout stores no credentials
|
|
# (persist-credentials: false), so authenticate the push via the URL.
|
|
GH_TOKEN: ${{ github.token }}
|
|
HEAD_REF: ${{ steps.pr.outputs.head_ref }}
|
|
run: |
|
|
set -euo pipefail
|
|
if git diff --quiet -- java-sdk/gradle/verification-metadata.xml; then
|
|
echo "verification-metadata.xml already up to date; nothing to do."
|
|
exit 0
|
|
fi
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add java-sdk/gradle/verification-metadata.xml
|
|
git commit -m "Refresh Gradle dependency verification metadata for java-sdk"
|
|
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \
|
|
"HEAD:${HEAD_REF}"
|