Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #689 from github/aeisenberg/update-permissions
 Updates the permissions block to be minimal
Andrew Eisenberg authored and GitHub committed Aug 9, 2021

Unverified

No user is associated with the committer email.
2 parents 89e4b4f + 61fb5d7 commit 07fa17d
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/codeql.yml
@@ -17,8 +17,6 @@ jobs:
versions: ${{ steps.compare.outputs.versions }}

permissions:
actions: read
contents: read
security-events: write

steps:
@@ -68,8 +66,6 @@ jobs:
runs-on: ${{ matrix.os }}

permissions:
actions: read
contents: read
security-events: write

steps:
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -2,7 +2,7 @@

## [UNRELEASED]

No user facing changes.
- Update README to include a sample permissions block. [#689](https://github.com/github/codeql-action/pull/689)

## 1.0.11 - 09 Aug 2021

8 changes: 8 additions & 0 deletions README.md
@@ -42,6 +42,14 @@ jobs:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v2

0 comments on commit 07fa17d

Please sign in to comment.