Skip to content

Commit

Permalink
Do multiple attestations in the same step
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed Aug 13, 2024
1 parent b54eac1 commit 0fb27f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,10 @@ jobs:
cd $GITHUB_WORKSPACE/josm/plugins/${{ github.event.repository.name }}
ant -noinput -buildfile build.xml -Dplugin.version=${{ steps.version.outputs.version }}
- name: Perform attestation (jar)
- name: Perform attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: josm/dist/${{ inputs.plugin-jar-name }}.jar
- name: Perform attestation (sources)
uses: actions/attest-build-provenance@v1
with:
subject-path: josm/dist/${{ inputs.plugin-jar-name }}-sources.jar
subject-path: josm/dist/${{ inputs.plugin-jar-name }}.jar, josm/dist/${{ inputs.plugin-jar-name }}-sources.jar, josm/dist/${{ inputs.plugin-jar-name }}-javadoc.jar

- name: Upload plugin build
id: cache-plugin-build
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,16 @@ jobs:
permissions:
id-token: write
attestations: write
contents: write
packages: write
uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v2
```
## Permissions reference:
* `id-token` and `attestations`: For writing attestation information
* `contents`: For auto tags and creating a release
* `packages`: For pushing to a GH package repo

## Inputs (all optional)
### `josm-revision`
The JOSM revision to use, defaults to an empty string (`''`). This uses the
Expand Down

0 comments on commit 0fb27f5

Please sign in to comment.