3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 16:29:32 +01:00

Enable 'contents: write' permission for all build jobs

Otherwise:

    The workflow is not valid. .github/workflows/cargo-expand.yml (Line: 9, Col: 3):
    Error calling workflow 'dtolnay/install/.github/workflows/build.yml@master'.
    The nested job 'build' is requesting 'contents: write', but is only allowed 'contents: read'.
This commit is contained in:
David Tolnay 2022-06-20 03:16:50 -07:00
parent 2cff523187
commit 2092cdac92
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
11 changed files with 22 additions and 0 deletions

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-bloat crate: cargo-bloat
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-expand crate: cargo-expand
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-fuzz crate: cargo-fuzz
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-llvm-lines crate: cargo-llvm-lines
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-outdated crate: cargo-outdated
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-rm crate: cargo-rm
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: cargo-tally crate: cargo-tally
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -11,5 +11,7 @@ jobs:
with: with:
crate: cxxbridge-cmd crate: cxxbridge-cmd
bin: cxxbridge bin: cxxbridge
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: faketty crate: faketty
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: sha1dir crate: sha1dir
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}

View file

@ -10,5 +10,7 @@ jobs:
uses: dtolnay/install/.github/workflows/build.yml@master uses: dtolnay/install/.github/workflows/build.yml@master
with: with:
crate: star-history crate: star-history
permissions:
contents: write
secrets: secrets:
private_key: ${{secrets.private_key}} private_key: ${{secrets.private_key}}