By adding the explicit permission declaration, the user can deploy the HTML document with the default workflow permission of their repository.
permissions:
contents: write
pages: write
In issue #24, It is suggested to change the Workflow permission of the user repository setting from "Read repository contents and packages permissions" (default) to "Read and write permissions", to avoid the error at deployment by GitHub actions (See the figure below).
This explicit permission declaration in this pull request has two advantages compared to the one suggested in Issue #24.
The user of doxygen-github-pages-action doesn't need to change the repository workflow permission from the default ( easy to use ).
The user can keep the repository workflow permission in a strict state ( global safe ).
The changed YAMLs inside README.md have been tested with my test repository. I confirmed they work fine.
By adding the explicit permission declaration, the user can deploy the HTML document with the default workflow permission of their repository.
In issue #24, It is suggested to change the Workflow permission of the user repository setting from "Read repository contents and packages permissions" (default) to "Read and write permissions", to avoid the error at deployment by GitHub actions (See the figure below).
This explicit permission declaration in this pull request has two advantages compared to the one suggested in Issue #24.
The changed YAMLs inside README.md have been tested with my test repository. I confirmed they work fine.