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
|
name: Build/Test
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
name: "CodeQL"
|
name: "CodeQL"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
# The branches below must be a subset of the branches above
|
# The branches below must be a subset of the branches above
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
name: Kernel Module
|
name: Kernel Module
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ '*' ]
|
branches: [ '*' ]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
name: Create Release
|
name: Create Release
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue