mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-19 05:42:36 +00:00
Merge branch 'main' into dependabot/npm_and_yarn/npm-development-d185e289e1
This commit is contained in:
commit
cbd145074f
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -50,7 +50,8 @@ jobs:
|
|||||||
name: Test attest-provenance action
|
name: Test attest-provenance action
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
attestations: write
|
||||||
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
10
README.md
10
README.md
@ -29,11 +29,11 @@ attest:
|
|||||||
```yaml
|
```yaml
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: write # TODO: Update this
|
attestations: write
|
||||||
```
|
```
|
||||||
|
|
||||||
The `id-token` permission gives the action the ability to mint the OIDC token
|
The `id-token` permission gives the action the ability to mint the OIDC token
|
||||||
permission is necessary to persist the attestation. The `contents` permission
|
permission is necessary to persist the attestation. The `attestations` permission
|
||||||
is necessary to persist the attestation.
|
is necessary to persist the attestation.
|
||||||
|
|
||||||
1. Add the following to your workflow after your artifact has been built:
|
1. Add the following to your workflow after your artifact has been built:
|
||||||
@ -112,7 +112,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: write
|
contents: read
|
||||||
|
attestations: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -166,7 +167,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
packages: write
|
packages: write
|
||||||
contents: write
|
contents: read
|
||||||
|
attestations: write
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user