Skip to content

Commit f374474

Browse files
committed
Updates the permissions block to be minimal
And adds a permissions block to the README.
1 parent 8ddd620 commit f374474

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
versions: ${{ steps.compare.outputs.versions }}
1818

1919
permissions:
20-
actions: read
21-
contents: read
2220
security-events: write
2321

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

7068
permissions:
71-
actions: read
72-
contents: read
7369
security-events: write
7470

7571
steps:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [UNRELEASED]
44

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

77
## 1.0.10 - 03 Aug 2021
88

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
4343
runs-on: ubuntu-latest
4444

45+
permissions:
46+
security-events: write
47+
4548
steps:
4649
- name: Checkout repository
4750
uses: actions/checkout@v2

0 commit comments

Comments
 (0)