mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
github: specify workflow permissions
Update gh-pages has started failing with default permissions. It needs write permissions to be able to push to the gh-pages branch.
This commit is contained in:
parent
5c61c6b89c
commit
e17a9e5982
2 changed files with 10 additions and 1 deletions
6
.github/workflows/gh-pages.yml
vendored
6
.github/workflows/gh-pages.yml
vendored
|
@ -10,12 +10,16 @@ on:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: gh-pages
|
group: gh-pages
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-docs:
|
update-docs:
|
||||||
name: Update gh-pages documentation
|
name: Update gh-pages documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y jq curl
|
sudo apt-get install -y jq curl
|
||||||
|
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -6,10 +6,15 @@ on:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: gh-pages
|
group: gh-pages
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-helm-repo:
|
update-helm-repo:
|
||||||
name: Update gh-pages helm repo index
|
name: Update gh-pages helm repo index
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
uses: azure/setup-helm@v4
|
uses: azure/setup-helm@v4
|
||||||
|
|
Loading…
Reference in a new issue