From b4de77dec2bac0cff85393c4699c6fe5add2ba23 Mon Sep 17 00:00:00 2001 From: Nathanael Esayeas Date: Tue, 9 Apr 2024 09:11:02 -0500 Subject: [PATCH] Update automation.yml Signed-off-by: Nathanael Esayeas --- .github/workflows/automation.yml | 35 ++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index 5acf6bc..e58eab1 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -22,15 +22,34 @@ on: required: false # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions +# values: read, write, none permissions: - actions: write # permits an action to cancel a workflow run. - checks: write # permits an action to create a check run. - contents: write # allows the action to create a release. - discussions: write # permits an action to close or delete a discussion. - pull-requests: write # permits an action to add a label to a pull request. - issues: write # permits an action to add a comment to an issue - packages: write # permits an action to upload and publish packages on GitHub Packages. - pages: write # permits an action to request a GitHub Pages build. + # actions: Work with GitHub Actions. For example, actions: write permits an action to cancel a workflow run. + actions: write + # checks: Work with check runs and check suites. For example, checks: write permits an action to create a check run. + checks: write + # contents: Work with the contents of the repository. For example, contents: read permits an action to list the commits, and contents:write allows the action to create a release. + contents: write + # deployments: Work with deployments. For example, deployments: write permits an action to create a new deployment. + deployments: write + # discussions: Work with GitHub Discussions. For example, discussions: write permits an action to close or delete a discussion. + discussions: write + # id-token: Fetch an OpenID Connect (OIDC) token. This requires id-token: write. + id-token: none + # issues: Work with issues. For example, issues: write permits an action to add a comment to an issue. + issues: write + # packages: Work with GitHub Packages. For example, packages: write permits an action to upload and publish packages on GitHub Packages. + packages: write + # pages: Work with GitHub Pages. For example, pages: write permits an action to request a GitHub Pages build. + pages: write + # pull-requests: Work with pull requests. For example, pull-requests: write permits an action to add a label to a pull request. + pull-requests: write + # repository-projects: Work with GitHub projects (classic). For example, repository-projects: write permits an action to add a column to a project (classic). + repository-projects: write + # security-events: Work with GitHub code scanning and Dependabot alerts. For example, security-events: read permits an action to list the Dependabot alerts for the repository, and security-events: write allows an action to update the status of a code scanning alert. + security-events: write + # statuses: Work with commit statuses. For example, statuses:read permits an action to list the commit statuses for a given reference. + statuses: write jobs: matrix: