Skip to content

Commit

Permalink
added security-write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelknafo committed Feb 13, 2025
1 parent 63a18d6 commit b5b25d7
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/devopsshield-sca-osv-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# DevOps Shield - The ultimate DevSecOps platform designed to secure your DevOps.
# https://devopsshield.com
##############################################################
# This is a DevOps Shield - Application Security - Code Security Template.
# This is a DevOps Shield - Application Security - Code Security Template.

# This workflow template uses actions that are not certified by DevOps Shield.
# This workflow template uses actions that are not certified by DevOps Shield.
# They are provided by a third-party and are governed by separate terms of service, privacy policy, and support documentation.

# Use this workflow template for integrating code security into your pipelines and workflows.
Expand All @@ -16,11 +16,11 @@
# DevSecOpsControls: SCA
# Provider: Google
# Categories: Code Scanning, Dependency Management, JavaScript, Python, Java, PHP, C#, R, Ruby, Rust, Swift, Go, TypeScript
# Description:
# Description:
# Vulnerability scanner for your dependencies using data provided by https://osv.dev
# Use OSV-Scanner to find existing vulnerabilities affecting your project's dependencies.
# Read the official documentation to find out more.
# For more information:
# Read the official documentation to find out more.
# For more information:
# https://google.github.io/osv-scanner/
# https://github.com/google/osv-scanner
# ------------------------------------------------------------
Expand All @@ -31,14 +31,18 @@ name: OSV Scanner

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
merge_group:
branches: [ master ]
branches: [master]
schedule:
- cron: 0 0 * * 0

permissions:
contents: read
security-events: write

jobs:
osv-scan-scheduled:
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
Expand Down

0 comments on commit b5b25d7

Please sign in to comment.