Skip to content

Commit 178535d

Browse files
authored
Small alignments of workflows across the 6 Java repos (#7806)
1 parent dfdc85f commit 178535d

15 files changed

+25
-18
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

.github/config/lychee.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Lychee configuration file
2+
# See https://lychee.cli.rs/config/
3+
14
timeout = 30
25
retry_wait_time = 5
36
max_retries = 6
@@ -8,11 +11,11 @@ include_fragments = true
811

912
remap = [
1013
# workaround for https://github.com/lycheeverse/lychee/issues/1729
11-
'https://github.com/(.*?)/(.*?)/blob/(.*?)/(.*#.*)$ https://raw.githubusercontent.com/$1/$2/$3/$4',
14+
"https://github.com/(.*?)/(.*?)/blob/(.*?)/(.*#.*)$ https://raw.githubusercontent.com/$1/$2/$3/$4",
1215
]
1316

1417
# excluding links to pull requests and issues is done for performance
1518
exclude = [
16-
'^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\d+$',
17-
'^https://www.javadoc.io/badge/(.*?)/(.*?).svg$', # returns 522
19+
"^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$",
20+
"^https://www.javadoc.io/badge/(.*?)/(.*?).svg$", # returns 522
1821
]

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: Use CLA approved github bot
30-
run: .github/scripts/use-cla-approved-github-bot.sh
30+
run: .github/scripts/use-cla-approved-bot.sh
3131

3232
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
3333
id: otelbot-token

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
java -jar libs/opentelemetry-sdk-trace-*-jmh.jar -rf json SpanBenchmark SpanPipelineBenchmark ExporterBenchmark
4949
5050
- name: Use CLA approved github bot
51-
run: .github/scripts/use-cla-approved-github-bot.sh
51+
run: .github/scripts/use-cla-approved-bot.sh
5252

5353
- name: Store benchmark results
5454
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
markdown-link-check:
115115
# release branches are excluded to avoid unnecessary maintenance
116116
if: ${{ !startsWith(github.ref_name, 'release/') }}
117-
uses: ./.github/workflows/reusable-markdown-link-check.yml
117+
uses: ./.github/workflows/reusable-link-check.yml
118118

119119
misspell-check:
120120
# release branches are excluded to avoid unnecessary maintenance

.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/issue-management-feedback-label.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Issue management - remove needs feedback label
1+
name: Issue management - remove labels as needed
22

33
on:
44
issue_comment:
@@ -20,9 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222

23-
- name: Remove label
23+
- name: Remove labels
2424
env:
2525
ISSUE_NUMBER: ${{ github.event.issue.number }}
2626
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
run: |
2828
gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER
29+
gh issue edit --remove-label "stale" $ISSUE_NUMBER

.github/workflows/issue-management-stale-action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# hourly at minute 23
66
- cron: "23 * * * *"
7+
workflow_dispatch:
78

89
permissions:
910
contents: read

.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:

0 commit comments

Comments
 (0)