Skip to content

Commit 51c2d3d

Browse files
authored
Merge branch 'main' into fix-awaility-breaking-steps-lifecycle
2 parents 035e113 + 1bf17c4 commit 51c2d3d

64 files changed

Lines changed: 875 additions & 383 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
pull_request:
@@ -15,10 +18,10 @@ jobs:
1518
name: "Build"
1619
runs-on: ubuntu-latest
1720
steps:
18-
- uses: actions/checkout@v4.1.1
21+
- uses: actions/checkout@v5
1922

2023
- name: "Set up JDK"
21-
uses: actions/setup-java@v4
24+
uses: actions/setup-java@v5
2225
with:
2326
distribution: 'zulu'
2427
java-version: 21

.github/workflows/dependency-submission.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout sources
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
- name: Generate and submit dependency graph
1919
uses: gradle/actions/dependency-submission@v4
2020
env:

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ name: "Set theme labels"
33
on:
44
- pull_request_target
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
triage:
811
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
914
steps:
1015
- uses: actions/labeler@v4
1116
with:

.github/workflows/labels-verify.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
pull_request_target:
55
types: [opened, labeled, unlabeled, synchronize]
66

7+
permissions:
8+
contents: none
9+
710
jobs:
811
triage:
912
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: read
1015
steps:
1116
- uses: baev/action-label-verify@main
1217
with:

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on:
44
release:
55
types: [ published ]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: actions/checkout@v4.1.1
14+
- uses: actions/checkout@v5
1215

1316
- name: "Set up JDK"
14-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@v5
1518
with:
1619
distribution: 'zulu'
1720
java-version: '21'
@@ -27,7 +30,7 @@ jobs:
2730

2831
- name: "Gradle Publish"
2932
run: |
30-
./gradlew publishToSonatype -Pversion=${GITHUB_REF:10} \
33+
./gradlew publishToSonatype closeSonatypeStagingRepository -Pversion=${GITHUB_REF:10} \
3134
-Psigning.keyId=${GPG_KEY_ID} \
3235
-Psigning.password=${GPG_PASSPHRASE} \
3336
-Psigning.secretKeyRingFile=${GITHUB_WORKSPACE}/${GPG_KEY_ID}.gpg

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,22 @@ on:
1111
description: "The next version in <MAJOR>.<MINOR> format WITHOUT SNAPSHOT SUFFIX"
1212
required: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
triage:
1619
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
1722
steps:
1823
- name: "Check release version"
1924
run: |
2025
expr "${{ github.event.inputs.releaseVersion }}" : '[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*$'
2126
- name: "Check next version"
2227
run: |
2328
expr "${{ github.event.inputs.nextVersion }}" : '[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*$'
24-
- uses: actions/checkout@v4.1.1
29+
- uses: actions/checkout@v5
2530
with:
2631
token: ${{ secrets.QAMETA_CI }}
2732

allure-attachments/src/main/java/io/qameta/allure/attachment/AttachmentData.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*
2121
* @author charlie (Dmitry Baev).
2222
*/
23+
@FunctionalInterface
2324
public interface AttachmentData {
2425

2526
String getName();

allure-attachments/src/main/java/io/qameta/allure/attachment/AttachmentProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* @param <T> the type of attachment data.
2020
* @author charlie (Dmitry Baev).
2121
*/
22+
@FunctionalInterface
2223
public interface AttachmentProcessor<T extends AttachmentData> {
2324

2425
void addAttachment(T attachmentData, AttachmentRenderer<T> renderer);

allure-attachments/src/main/java/io/qameta/allure/attachment/AttachmentRenderer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @author charlie (Dmitry Baev).
2121
*/
2222
@SuppressWarnings("PMD.AvoidUncheckedExceptionsInSignatures")
23+
@FunctionalInterface
2324
public interface AttachmentRenderer<T extends AttachmentData> {
2425

2526
AttachmentContent render(T attachmentData) throws AttachmentRenderException;

allure-attachments/src/main/java/io/qameta/allure/attachment/http/HttpRequestAttachment.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public String toString() {
112112
/**
113113
* Builder for HttpRequestAttachment.
114114
*/
115-
@SuppressWarnings("PMD.AvoidFieldNameMatchingMethodName")
116115
public static final class Builder {
117116

118117
private final String name;

0 commit comments

Comments
 (0)