mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: token permissions on report vulns workflow (#7611)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
4ff276c2d6
commit
d8951d4a95
1 changed files with 8 additions and 0 deletions
|
@ -1,11 +1,16 @@
|
|||
name: report-on-vulnerabilities
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
schedule:
|
||||
- cron: '23 2 * * *' # Every day at 02:23
|
||||
|
||||
permissions: {}
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
scan:
|
||||
runs-on: ubuntu-20.04
|
||||
|
@ -48,6 +53,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
if: contains(needs.scan.outputs.results, 'SchemaVersion')
|
||||
needs: scan
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
Loading…
Reference in a new issue