mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-12 17:40:41 +00:00
Adds `permissions: contents: read` to the 10 workflows that had no top-level permissions block. Workflows that already declared permissions, or individual jobs that need elevated permissions (`issues: write`, `pull-requests: write`, `contents: write`), are left unchanged. Affected workflows: `dev.yml`, `java-publish.yml`, `java.yml`, `license-header-check.yml`, `nodejs.yml`, `pypi-publish.yml`, `python.yml`, `rust.yml`, `update_package_lock_run.yml`, `update_package_lock_run_nodejs.yml`
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
# Licensed 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: Build Java LanceDB Core
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- java/**
|
|
- .github/workflows/java.yml
|
|
pull_request:
|
|
paths:
|
|
- java/**
|
|
- .github/workflows/java.yml
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-java:
|
|
runs-on: ubuntu-24.04
|
|
name: Build
|
|
defaults:
|
|
run:
|
|
working-directory: ./java
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up Java 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17
|
|
cache: "maven"
|
|
- name: Java Style Check
|
|
run: ./mvnw checkstyle:check
|
|
- name: Build and install
|
|
run: ./mvnw clean install
|