Skip to content

Commit 329b752

Browse files
committed
Enable release artifact attestation
1 parent 6c30700 commit 329b752

File tree

2 files changed

+10
-31
lines changed

2 files changed

+10
-31
lines changed

.github/workflows/release.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- "v*.*.*" # Run workflow on version tags, e.g. v1.0.0.
77

8+
permissions:
9+
id-token: write
10+
contents: write
11+
attestations: write
12+
813
jobs:
914
release:
1015
runs-on: ubuntu-latest
@@ -82,6 +87,11 @@ jobs:
8287
md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}
8388
echo "::set-output name=checksum::$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)"
8489
90+
- name: Generate artifact attestation
91+
uses: actions/attest-build-provenance@v2
92+
with:
93+
subject-path: ${{ steps.metadata.outputs.archive }}
94+
8595
- name: Create release
8696
id: create_release
8797
uses: actions/create-release@v1
@@ -114,9 +124,3 @@ jobs:
114124
asset_path: ./${{ steps.metadata.outputs.archive-checksum }}
115125
asset_name: ${{ steps.metadata.outputs.archive-checksum }}
116126
asset_content_type: text/plain
117-
118-
- name: Publish to Grafana.com
119-
run: |
120-
echo A draft release has been created for your plugin. Please review and publish it. Then submit your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
121-
echo
122-
echo '{ "id": "${{ steps.metadata.outputs.plugin-id }}", "type": "${{ steps.metadata.outputs.plugin-type }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ steps.metadata.outputs.plugin-version }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}", "md5": "${{ steps.package-plugin.outputs.checksum }}" } } } ] }' | jq .

LICENSE

-25
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,3 @@
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "{}"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright {yyyy} {name of copyright owner}
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.

0 commit comments

Comments
 (0)