diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7447d34cd..161d74e26 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,8 +9,15 @@ on: schedule: - cron: '0 9 * * 6' +permissions: + contents: read + jobs: analyze: + permissions: + actions: read # for github/codeql-action/init to get workflow details + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/autobuild to send a status report name: Analyze runs-on: ubuntu-latest diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index 8fc6eec28..a5d0fe59e 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -5,8 +5,14 @@ name: Automatic Comment on: issues: types: [opened] +permissions: + contents: read + jobs: comment: + permissions: + issues: write # for peter-evans/create-or-update-comment to create or update comment + pull-requests: write # for peter-evans/create-or-update-comment to create or update comment name: Comment runs-on: ubuntu-latest steps: