diff --git a/.github/workflows/deploy_docs_from_branch.yml b/.github/workflows/deploy_docs_from_branch.yml index e0d16da864..e34846ad0a 100644 --- a/.github/workflows/deploy_docs_from_branch.yml +++ b/.github/workflows/deploy_docs_from_branch.yml @@ -8,9 +8,13 @@ jobs: build_and_deploy_docs: runs-on: ubuntu-latest name: Build and deploy docs + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Node setup uses: ./.github/actions/node-setup diff --git a/.github/workflows/publish_deploy.yml b/.github/workflows/publish_deploy.yml index 354aeee9da..67986060c8 100644 --- a/.github/workflows/publish_deploy.yml +++ b/.github/workflows/publish_deploy.yml @@ -61,11 +61,14 @@ jobs: if: ${{ success() && needs.payload.outputs.package_name == '@vkontakte/vkui' && needs.payload.outputs.next_version }} runs-on: ubuntu-latest name: Deploy @vkontakte/vkui docs + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: ref: ${{ env.CHECKOUT_BRANCH }} + persist-credentials: false - name: Setting up the repository environment uses: ./.github/actions/setup