René's URL Explorer Experiment


Title: Support GPG · Issue #43 · actions/setup-java · GitHub

Open Graph Title: Support GPG · Issue #43 · actions/setup-java

X Title: Support GPG · Issue #43 · actions/setup-java

Description: Releasing artifacts to Maven Central requires publishers to sign all of the assets with GPG. Publishers most commonly deal with this by utilizing maven-gpg-plugin. This is a bit of a headache right now in GitHub actions as you have to cr...

Open Graph Description: Releasing artifacts to Maven Central requires publishers to sign all of the assets with GPG. Publishers most commonly deal with this by utilizing maven-gpg-plugin. This is a bit of a headache right...

X Description: Releasing artifacts to Maven Central requires publishers to sign all of the assets with GPG. Publishers most commonly deal with this by utilizing maven-gpg-plugin. This is a bit of a headache right...

Opengraph URL: https://github.com/actions/setup-java/issues/43

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support GPG","articleBody":"Releasing artifacts to Maven Central requires publishers to sign all of the assets with GPG. Publishers most commonly deal with this by utilizing [maven-gpg-plugin](https://maven.apache.org/plugins/maven-gpg-plugin/).\r\n\r\nThis is a bit of a headache right now in GitHub actions as you have to create a step in your workflow that:\r\n1. takes a GitHub secret containing your private key and writes it to a file:\r\n  `echo $GPG_PRIVATE_KEY \u003e private.asc`\r\n2. imports the gpg key:\r\n  `gpg --import --batch private.asc`\r\n\r\nAnd to utilize the GPG key, you then have to pass it in as a maven argument:\r\n`-Dgpg.passphrase=$GPG_PASSPHRASE`\r\n\r\nThis is definitely workable (see [link](https://github.com/jaredpetersen/actions-testbed/blob/f23733ce957e28ed0b329a3a6d5f5b96b7720253/.github/workflows/release.yml#L15-L28) for an example workflow) but it's more tedious than needed. It's also not ideal to pass passwords around using the command line even though GitHub Actions sanitizes them. Since setup-java already creates a settings.xml file that is preconfigured to publish to Maven Central, it would be nice if gpg could also be added to the settings.xml file.\r\n\r\nThe usage would look something like the following:\r\n```\r\n- name: Set up Apache Maven Central\r\n  uses: actions/setup-java@v1\r\n  with: # running setup-java again overwrites the settings.xml\r\n     java-version: 1.8\r\n     server-id: maven # Value of the distributionManagement/repository/id field of the pom.xml\r\n     server-username: MAVEN_USERNAME # env variable for username in deploy\r\n     server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy\r\n     gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # gpg private key to import\r\n     gpg-passphrase: GPG_PASSPHRASE # env variable for gpg signing in deploy\r\n- name: Publish to Apache Maven Central\r\n  run: mvn deploy \r\n  env:\r\n    MAVEN_USERNAME: maven_username123\r\n    MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}\r\n    GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}\r\n```\r\n\r\nAnd the generated settings.xml would look something like:\r\n```xml\r\n\u003cservers\u003e\r\n    \u003cserver\u003e\r\n      \u003cid\u003emaven\u003c/id\u003e\r\n      \u003cusername\u003e${env.MAVEN_USERNAME}\u003c/username\u003e\r\n      \u003cpassword\u003e${env.MAVEN_CENTRAL_TOKEN}\u003c/password\u003e\r\n    \u003c/server\u003e\r\n    \u003cprofiles\u003e\r\n      \u003cprofile\u003e\r\n        \u003cactivation\u003e\r\n          \u003cactiveByDefault\u003etrue\u003c/activeByDefault\u003e\r\n        \u003c/activation\u003e\r\n        \u003cproperties\u003e\r\n          \u003cgpg.passphrase\u003e${env.GPG_PASSPHRASE}\u003c/gpg.passphrase\u003e\r\n        \u003c/properties\u003e\r\n      \u003c/profile\u003e\r\n    \u003cprofiles\u003e\r\n\u003c/servers\u003e\r\n```\r\n\r\nSince gpg is not supported by setup-java, other developers have had to step in to fill the void. [samuelmeuli/action-maven-publish](https://github.com/samuelmeuli/action-maven-publish) was created specifically to fill this gap but it overrides the settings.xml file to do so. It would better if the official setup-java action supported this, especially as some developers/organizations are uncomfortable with third-party actions.\r\n","author":{"url":"https://github.com/jaredpetersen","@type":"Person","name":"jaredpetersen"},"datePublished":"2020-01-18T00:31:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/43/setup-java/issues/43"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:875cf0d2-b538-e69d-729e-182cf427f13e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB4AA:11597D:DC60DA:13687C2:6A4F5251
html-safe-nonce7537af9ada22c4c4c8e0c9a3a47fb3200b25f23ae77fd7d2906f6e4f22874145
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEFBOjExNTk3RDpEQzYwREE6MTM2ODdDMjo2QTRGNTI1MSIsInZpc2l0b3JfaWQiOiI2NjMyNTk4ODI4ODMzNzg4NDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc2de1332840e93440252a40232e5b6f65b280f20ceead19e2681d476fcb14b41
hovercard-subject-tagissue:551692698
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/43/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e68b5ac12dbe369610b72e1e6ce8ffb8be04ab01244b28e4558e43de43db4395/actions/setup-java/issues/43
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e68b5ac12dbe369610b72e1e6ce8ffb8be04ab01244b28e4558e43de43db4395/actions/setup-java/issues/43
og:image:altReleasing artifacts to Maven Central requires publishers to sign all of the assets with GPG. Publishers most commonly deal with this by utilizing maven-gpg-plugin. This is a bit of a headache right...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejaredpetersen
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-java git https://github.com/actions/setup-java.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id196057608
octolytics-dimension-repository_nwoactions/setup-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id196057608
octolytics-dimension-repository_network_root_nwoactions/setup-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-java/issues/43#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F43
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F43
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-java
Reloadhttps://github.com/actions/setup-java/issues/43
Reloadhttps://github.com/actions/setup-java/issues/43
Reloadhttps://github.com/actions/setup-java/issues/43
Please reload this pagehttps://github.com/actions/setup-java/issues/43
actions https://github.com/actions
setup-javahttps://github.com/actions/setup-java
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-java
Fork 863 https://github.com/login?return_to=%2Factions%2Fsetup-java
Star 1.9k https://github.com/login?return_to=%2Factions%2Fsetup-java
Code https://github.com/actions/setup-java
Issues 26 https://github.com/actions/setup-java/issues
Pull requests 5 https://github.com/actions/setup-java/pulls
Actions https://github.com/actions/setup-java/actions
Projects https://github.com/actions/setup-java/projects
Security and quality 0 https://github.com/actions/setup-java/security
Insights https://github.com/actions/setup-java/pulse
Code https://github.com/actions/setup-java
Issues https://github.com/actions/setup-java/issues
Pull requests https://github.com/actions/setup-java/pulls
Actions https://github.com/actions/setup-java/actions
Projects https://github.com/actions/setup-java/projects
Security and quality https://github.com/actions/setup-java/security
Insights https://github.com/actions/setup-java/pulse
Support GPGhttps://github.com/actions/setup-java/issues/43#top
https://github.com/jaredpetersen
jaredpetersenhttps://github.com/jaredpetersen
on Jan 18, 2020https://github.com/actions/setup-java/issues/43#issue-551692698
maven-gpg-pluginhttps://maven.apache.org/plugins/maven-gpg-plugin/
linkhttps://github.com/jaredpetersen/actions-testbed/blob/f23733ce957e28ed0b329a3a6d5f5b96b7720253/.github/workflows/release.yml#L15-L28
samuelmeuli/action-maven-publishhttps://github.com/samuelmeuli/action-maven-publish
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.