Skip to content

Conversation

@adangel
Copy link
Member

@adangel adangel commented Apr 11, 2025

Describe the PR

  • This enhances the current release workflow to also trigger the workflow in https://github.com/pmd/docker to create a new image
  • This is a workflow in a different repository, so GitHub Actions permissions are bit different. In order to make this (hopefully) work, I created a new custom GitHub App in our organization (https://github.com/pmd) and installed it. This GitHub App is named "PMD Actions Helper" and for now has the only permission to trigger workflows in any of our repositories (permission: actions=write).
  • This app installation is used to request a new installation access token when the release workflow is run and this token is used to execute workflow dispatch API call (https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event )
  • The app id and private key are configured as organization wide secrets

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@adangel adangel added this to the 7.13.0 milestone Apr 11, 2025
@github-actions
Copy link

Documentation Preview

No regression tested rules have been changed.

@adangel adangel changed the title [ci] Maintain public Docker image Fix #5448: [ci] Maintain public Docker image Apr 24, 2025
@adangel adangel merged commit 4885650 into pmd:main Apr 24, 2025
11 checks passed
adangel added a commit that referenced this pull request Apr 24, 2025
Merge pull request #5674 from adangel:issue-5448-docker
@adangel adangel deleted the issue-5448-docker branch April 24, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintain a public PMD docker image

1 participant