Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Make maven publisher an action #2482

Merged
merged 46 commits into from
Aug 1, 2023

Conversation

AdamKorcz
Copy link
Collaborator

Closes #2369

Copy link
Collaborator

@laurentsimon laurentsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AdamKorcz Looking pretty good. Just a few nits and we should be ready to merge.

actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
@laurentsimon
Copy link
Collaborator

@AdamKorcz please ping when the comments are resolved. I don't always know when I should re-review. Thanks!

@AdamKorcz
Copy link
Collaborator Author

@laurentsimon @ianlewis This one should be ready to review again. Note that this uses a plugin that hashes the artifacts and creates the json. Ideally this should be hosted at a slsa-framework-owned Maven Central repository account.

actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Show resolved Hide resolved
internal/builders/maven/README.md Show resolved Hide resolved
actions/maven/publish/action.yml Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
internal/builders/maven/README.md Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
internal/builders/maven/README.md Outdated Show resolved Hide resolved
@AdamKorcz AdamKorcz force-pushed the maven-publisher-to-action branch 2 times, most recently from f652d2d to 6e4ee0e Compare July 31, 2023 23:02
@AdamKorcz
Copy link
Collaborator Author

Ready for another round of review except for #2482 (comment).

actions/maven/publish/action.yml Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
actions/maven/publish/action.yml Outdated Show resolved Hide resolved
internal/builders/maven/action.yml Outdated Show resolved Hide resolved
internal/builders/maven/action.yml Outdated Show resolved Hide resolved
AdamKorcz and others added 15 commits August 1, 2023 12:06
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
* Create JarfileHashMojo.java

Signed-off-by: AdamKorcz <[email protected]>

* Create pom.xml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Delete JarfileHashMojo.java

Signed-off-by: AdamKorcz <[email protected]>

* Delete pom.xml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update README.md

Signed-off-by: AdamKorcz <[email protected]>

* Update action.yml

Signed-off-by: AdamKorcz <[email protected]>

* Update README.md

Signed-off-by: AdamKorcz <[email protected]>

* Update README.md

Signed-off-by: AdamKorcz <[email protected]>

---------

Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Co-authored-by: Ian Lewis <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Co-authored-by: Ian Lewis <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
@AdamKorcz
Copy link
Collaborator Author

@laurentsimon @ianlewis Please check again.

SLSA_DIR: "${{ inputs.provenance-download-name }}"
PROVENANCE_FILES: "${{ inputs.provenance-download-name }}"
run: |
cd __BUILDER_CHECKOUT_DIR__/actions/maven/publish/slsa-hashing-plugin && mvn clean install && cd -
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to mve this to ../ to keep the git tree clean (some tools check for that), but we can do that later.

Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
uses: slsa-framework/slsa-github-generator/.github/actions/secure-builder-checkout@main
with:
repository: slsa-framework/slsa-github-generator
ref: v1.8.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdamKorcz fyi I updated this to v1.8.0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laurentsimon is this expected to work right now?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no its not. It will only work after the release. I'll work on #2508 to be sure we don't forget

@laurentsimon laurentsimon enabled auto-merge (squash) August 1, 2023 21:57
@laurentsimon laurentsimon merged commit a594a20 into slsa-framework:main Aug 1, 2023
laurentsimon pushed a commit that referenced this pull request Aug 1, 2023
@AdamKorcz AdamKorcz deleted the maven-publisher-to-action branch August 4, 2023 11:25
enteraga6 pushed a commit to enteraga6/slsa-github-generator that referenced this pull request Aug 8, 2023
Closes
slsa-framework#2369

---------

Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Co-authored-by: Ian Lewis <[email protected]>
Co-authored-by: laurentsimon <[email protected]>
Signed-off-by: Noah Elzner <[email protected]>
enteraga6 pushed a commit to enteraga6/slsa-github-generator that referenced this pull request Aug 8, 2023
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.

[feature] Maven builder publish Action
3 participants