diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml deleted file mode 100644 index a430ab51..00000000 --- a/.github/workflows/close-inactive-issues.yml +++ /dev/null @@ -1,88 +0,0 @@ -name: Close Inactive Issues -on: - schedule: - - cron: "30 1 * * *" # once a day (1:30 UTC) - workflow_dispatch: # allow manual trigger - -jobs: - close-issues-in-triage: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - uses: actions/stale@v8 - with: - operations-per-run: 1000 - days-before-issue-stale: 28 - days-before-issue-close: 14 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 28 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." - close-issue-reason: 'not_planned' - days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale) - days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close) - remove-issue-stale-when-updated: true - exempt-all-issue-milestones: false # issues with assigned milestones will be ignored - only-label: 'triage' - repo-token: ${{ secrets.GITHUB_TOKEN }} - - close-issues-with-assignee: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - uses: actions/stale@v8 - with: - operations-per-run: 1000 - days-before-issue-stale: 28 - days-before-issue-close: 7 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 28 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." - close-issue-reason: 'not_planned' - days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale) - days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close) - remove-issue-stale-when-updated: true - exempt-all-issue-milestones: true # issues with assigned milestones will be ignored - exempt-issue-labels: bug # ignore issues labelled as bug - repo-token: ${{ secrets.GITHUB_TOKEN }} - - close-issues-without-assignee: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - uses: actions/stale@v8 - with: - operations-per-run: 1000 - days-before-issue-stale: 14 - days-before-issue-close: 7 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 14 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." - close-issue-reason: 'not_planned' - days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale) - days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close) - remove-issue-stale-when-updated: true - exempt-all-issue-milestones: true # issues with assigned milestones will be ignored - exempt-all-issue-assignees: true # issues with assignees will be ignored - exempt-issue-labels: bug # ignore issues labelled as bug - repo-token: ${{ secrets.GITHUB_TOKEN }} - - close-inactive-pull-requests: - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - uses: actions/stale@v8 - with: - operations-per-run: 1000 - days-before-issue-stale: -1 # ignore issues (overwrite default days-before-stale) - days-before-issue-close: -1 # ignore issues (overwrite default days-before-close) - stale-pr-label: "stale" - stale-pr-message: "This pull request is stale because it has been open for 7 days with no activity." - close-pr-message: "This pull request was closed because it has been inactive for 7 days since being marked as stale." - days-before-pr-stale: 7 - days-before-pr-close: 7 - remove-pr-stale-when-updated: true - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/discord-webhook.yml b/.github/workflows/discord-webhook.yml index a9e9dde5..5e4d1c03 100644 --- a/.github/workflows/discord-webhook.yml +++ b/.github/workflows/discord-webhook.yml @@ -8,44 +8,19 @@ on: types: [ created ] jobs: - message: - runs-on: ubuntu-latest - steps: - - name: New Discussion - uses: tsickert/discord-webhook@v5.3.0 - if: ${{ (github.event_name == 'discussion') }} - with: - webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }} - avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4 - embed-author-name: ${{ github.event.sender.login }} - embed-author-url: ${{ github.event.sender.html_url }} - embed-author-icon-url: ${{ github.event.sender.avatar_url }} - embed-title: ${{ github.event.discussion.title }} - embed-url: ${{ github.event.discussion.html_url }} - embed-description: A **discussion** has been created in ${{ github.repository }}. - - - name: New Issue - uses: tsickert/discord-webhook@v5.3.0 - if: ${{ (github.event_name == 'issues') }} - with: - webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }} - avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4 - embed-author-name: ${{ github.event.sender.login }} - embed-author-url: ${{ github.event.sender.html_url }} - embed-author-icon-url: ${{ github.event.sender.avatar_url }} - embed-title: ${{ github.event.issue.title }} - embed-url: ${{ github.event.issue.html_url }} - embed-description: An **issue** has been opened in ${{ github.repository }}. - - - name: New Pull Request - uses: tsickert/discord-webhook@v5.3.0 - if: ${{ (github.event_name == 'pull_request_target') }} - with: - webhook-url: ${{ secrets.DISCORD_WEBHOOK_GITHUB }} - avatar-url: https://avatars.githubusercontent.com/u/9919?s=200&v=4 - embed-author-name: ${{ github.event.sender.login }} - embed-author-url: ${{ github.event.sender.html_url }} - embed-author-icon-url: ${{ github.event.sender.avatar_url }} - embed-title: ${{ github.event.pull_request.title }} - embed-url: ${{ github.event.pull_request.html_url }} - embed-description: A **pull request** has been opened in ${{ github.repository }}. + trigger-workflow: + uses: eclipse-edc/.github/.github/workflows/discord-webhook.yml@main + with: + event_discussion_html_url: ${{ github.event.discussion.html_url }} + event_discussion_title: ${{ github.event.discussion.title }} + event_issue_html_url: ${{ github.event.issue.html_url }} + event_issue_title: ${{ github.event.issue.title }} + event_name: ${{ github.event_name }} + event_pull_request_html_url: ${{ github.event.pull_request.html_url }} + event_pull_request_title: ${{ github.event.pull_request.title }} + event_sender_avatar_url: ${{ github.event.sender.avatar_url }} + event_sender_html_url: ${{ github.event.sender.html_url }} + event_sender_login: ${{ github.event.sender.login }} + repository_name: ${{ github.repository }} + secrets: + env_discord: ${{ secrets.DISCORD_WEBHOOK_GITHUB }} diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml index d293c25c..b04f5d5b 100644 --- a/.github/workflows/first-interaction.yml +++ b/.github/workflows/first-interaction.yml @@ -7,15 +7,7 @@ on: types: [ opened ] jobs: - add-comment: - runs-on: ubuntu-latest - steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Thanks for your contribution :fire: We will take a look asap :rocket:' - pr-message: >- - We are always happy to welcome new contributors :heart: To make things easier for everyone, please - make sure to follow our [contribution guidelines](https://github.com/eclipse-dataspaceconnector/DataSpaceConnector/blob/main/CONTRIBUTING.md), - check if you have already signed the [ECA](http://www.eclipse.org/legal/ecafaq.php), and - relate this pull request to an existing issue or discussion. + trigger-workflow: + uses: eclipse-edc/.github/.github/workflows/first-interaction.yml@main + secrets: + envGH: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-all-java.yml b/.github/workflows/release-all-java.yml index afd92a3b..817016e0 100644 --- a/.github/workflows/release-all-java.yml +++ b/.github/workflows/release-all-java.yml @@ -72,4 +72,4 @@ jobs: - uses: ./.github/actions/bump-version with: target_branch: "main" - base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }} \ No newline at end of file + base_version: ${{ needs.Prepare-Release.outputs.metamodel-version }} diff --git a/.github/workflows/scan-pull-request.yaml b/.github/workflows/scan-pull-request.yaml index 1fe92911..16c17d3f 100644 --- a/.github/workflows/scan-pull-request.yaml +++ b/.github/workflows/scan-pull-request.yaml @@ -10,35 +10,7 @@ concurrency: cancel-in-progress: true jobs: - check-pull-request-title: - runs-on: ubuntu-latest - continue-on-error: false - steps: - - uses: actions/checkout@v4 - - uses: deepakputhraya/action-pr-title@master - with: - # Match pull request titles conventional commit syntax (https://www.conventionalcommits.org/en/v1.0.0/) - # (online tool for regex quick check: https://regex101.com/r/V5J8kh/1) - # - # Valid examples would be - # - fix: resolve minor issue - # - docs(Sample5): update docs for configuration - # - feat(management-api)!: change path to access contract agreements - # - # Invalid examples would be - # - Add cool feature - # - Feature/some cool improvement - # - fix: resolve minor issue. - regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+((,|\/|\\)?\s?\w+)+\))?!?: [\S ]{1,80}[^\.]$' - allowed_prefixes: 'build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test' - prefix_case_sensitive: true - - check-for-assigned-labels: - runs-on: ubuntu-latest - continue-on-error: false - steps: - - uses: actions/checkout@v4 - - uses: agilepathway/label-checker@v1.6.9 - with: - any_of: api,bug,build,dependencies,documentation,enhancement,no-changelog,refactoring - repo_token: ${{ secrets.GITHUB_TOKEN }} + trigger-workflow: + uses: eclipse-edc/.github/.github/workflows/scan-pull-request.yml@main + secrets: + envGH: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 00000000..28f72936 --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,12 @@ +name: Close Inactive Issues + +on: + schedule: + - cron: "30 1 * * *" # once a day (1:30 UTC) + workflow_dispatch: # allow manual trigger + +jobs: + trigger-workflow: + uses: eclipse-edc/.github/.github/workflows/stale-bot.yml@main + secrets: + envGH: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/DEPENDENCIES b/DEPENDENCIES index baff9229..a24816c5 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -56,10 +56,10 @@ maven/mavencentral/io.swagger.parser.v3/swagger-parser-v2-converter/2.0.23, Apac maven/mavencentral/io.swagger.parser.v3/swagger-parser-v3/2.0.23, Apache-2.0, approved, clearlydefined maven/mavencentral/io.swagger.parser.v3/swagger-parser/2.0.23, Apache-2.0, approved, clearlydefined maven/mavencentral/io.swagger/swagger-annotations/1.6.2, Apache-2.0, approved, #3792 -maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.52, None, restricted, #11479 +maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.52, Apache-2.0, approved, #11479 maven/mavencentral/io.swagger/swagger-core/1.6.1, Apache-2.0, approved, #4358 maven/mavencentral/io.swagger/swagger-core/1.6.2, Apache-2.0, approved, #4358 -maven/mavencentral/io.swagger/swagger-models/1.6.2, LicenseRef-scancode-proprietary-license, restricted, #11403 +maven/mavencentral/io.swagger/swagger-models/1.6.2, Apache-2.0, approved, #11403 maven/mavencentral/io.swagger/swagger-parser/1.0.52, Apache-2.0, approved, #4359 maven/mavencentral/jakarta.activation/jakarta.activation-api/1.2.1, EPL-2.0 OR BSD-3-Clause OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.jaf maven/mavencentral/jakarta.validation/jakarta.validation-api/2.0.2, Apache-2.0, approved, ee4j.validation