mirror of https://github.com/nirenjan/libx52.git
ci: Add permissions blocks to action definitions
CodeQL identified a medium severity security issue with the action definitions not including a permissions block as required by modern security practices. This change ensures that the majority of the actions force the token to be read-only and not accidentally write content back into the repository.pull/60/head
parent
47da6e22d1
commit
378cbbd931
|
|
@ -1,5 +1,8 @@
|
|||
name: Build/Test
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
name: "CodeQL"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
name: Kernel Module
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ '*' ]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
name: Create Release
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Reference in New Issue