Skip to content

Set most permissive permissions (for testing) #268

Set most permissive permissions (for testing)

Set most permissive permissions (for testing) #268

Workflow file for this run

name: Build and Preview Workshop Docs
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- closed
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'Makefile'
permissions:
# actions: write
# checks: write
contents: write
deployments: write
id-token: write
# issues: write
# packages: write
pages: write
# pull-requests: write
# repository-projects: write
# security-events: write
# statuses: write
concurrency:
group: preview-${{ github.ref }}
cancel-in-progress: true
jobs:
preview-docs:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Capture branch and tag
id: branch_name
run: |
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build workshop site
if: " github.event.action != 'closed' "
run: |
echo "GIT_PYTHON_REFRESH=quiet"
make build-docs-website
- name: Release preview to branch
if: "! github.event.pull_request.head.repo.fork "
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./dist/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
publish-preview-docs:

Check failure on line 63 in .github/workflows/preview-docs.yml

View workflow run for this annotation

GitHub Actions / Build and Preview Workshop Docs

Invalid workflow file

The workflow is not valid. .github/workflows/preview-docs.yml (Line: 63, Col: 3): Error calling workflow 'Azure/aca-dotnet-workshop/.github/workflows/publish-docs.yml@1fdb3e9e9ac92eae656b5df62be324b1100233ed'. The workflow is requesting 'actions: write, checks: write, issues: write, packages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write', but is only allowed 'actions: none, checks: none, issues: none, packages: none, pull-requests: none, repository-projects: none, status[...]
if: "! github.event.pull_request.head.repo.fork "
name: Preview
needs: preview-docs
uses: ./.github/workflows/publish-docs.yml