Skip to content

Commit 78b406e

Browse files
authored
Small alignments of workflows across the 6 Java repos (#152)
1 parent e773b82 commit 78b406e

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Code owners file.
2-
# This file controls who is tagged for review for any given pull request.
1+
#
2+
# Learn about membership in OpenTelemetry community:
3+
# https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md
4+
#
35

4-
# For anything not explicitly taken by someone else:
56
* @open-telemetry/java-approvers @open-telemetry/java-instrumentation-maintainers

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ on:
55
branches:
66
- main
77
- release/*
8+
workflow_dispatch:
89

910
permissions:
1011
contents: read
1112

1213
jobs:
1314
build-and-publish-snapshots:
1415
runs-on: ubuntu-latest
15-
# skipping release branches because the versions in those branches are not snapshots
16-
if: github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-proto-java'
1716
steps:
1817
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1918

@@ -28,8 +27,12 @@ jobs:
2827

2928
- name: Build
3029
run: ./gradlew build
30+
env:
31+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3132

3233
- name: Publish snapshots
34+
# skipping release branches because the versions in those branches are not snapshots
35+
if: github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-proto-java'
3336
run: ./gradlew publishToSonatype
3437
env:
3538
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1515

16+
# this needs to be in its own workflow in order to make OSSF scorecard happy
1617
- uses: gradle/actions/wrapper-validation@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- cron: "43 6 * * 5" # weekly at 06:43 (UTC) on Friday
99
workflow_dispatch:
1010

11-
permissions: read-all
11+
permissions:
12+
contents: read
1213

1314
jobs:
1415
analysis:

.github/workflows/prepare-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
2121
create-pull-request-against-release-branch:
2222
permissions:
23-
contents: write # for Git to git push
23+
contents: write # for git push to PR branch
2424
runs-on: ubuntu-latest
2525
needs:
2626
- prereqs

0 commit comments

Comments
 (0)