cbd5b645f1
* Added Cloudrail according to instructions and existing examples
* Adding Cloudrail according to documentation and examples
* Oops
* Add original Fortify on Demand workflow
* Update Fortify on Demand workflow
* Update Fortify on Demand supported languages
* Add 3rd-party GitHub Actions disclaimer
* Sysdig Secure Inline Scan with SARIF report to starter workflows
* Added some extra comments, Github Actions V2 and changed env vars
* Reviews from PR #1110
* Adding 'Dockerfile' to category list
* Update according to PR review comments
* File renames as requested in PR comments
* Revert "Azure Data Factory CI starter workflow (#1111)" (#1146)
This reverts commit 7f30309cce.
* use env variables for user-set values (#1117)
Co-authored-by: Josh Gross <joshmgross@github.com>
* Apply suggestions from nickfyson's code review
Co-authored-by: Nick Fyson <nickfyson@github.com>
* removing "deployment" templates from sync-ghes (#1127)
* Update code-scanning/properties/sysdig-scan.properties.json
Co-authored-by: Nick Fyson <nickfyson@github.com>
* Update code-scanning/properties/sysdig-scan.properties.json
Co-authored-by: Nick Fyson <nickfyson@github.com>
* Changed svg logo
* Rename sysdig.svg to sysdig-scan.svg
* Switched svg logo (again) for a better fit
* Rename fortify.json to fortify.properties.json
Co-authored-by: Yoni Leitersdorf <y@indeni.com>
Co-authored-by: Ruud Senden <ruud.senden@microfocus.com>
Co-authored-by: Ruud Senden <8635138+rsenden@users.noreply.github.com>
Co-authored-by: Manuel Boira Cuevas <manuel.boira@MacBook-Pro.local>
Co-authored-by: manuelbcd <manuel.boira@sysdig.com>
Co-authored-by: Nick Fyson <nickfyson@github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Josh Gross <joshmgross@github.com>
Co-authored-by: Aparna Ravindra <82894348+aparna-ravindra@users.noreply.github.com>
Co-authored-by: manuelbcd <manuelbcd@gmail.com>
54 lines
1.9 KiB
YAML
54 lines
1.9 KiB
YAML
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
|
|
name: Sysdig - Build, scan, push and upload sarif report
|
|
|
|
on:
|
|
push:
|
|
branches: [ $default-branch, $protected-branches ]
|
|
pull_request:
|
|
branches: [ $default-branch ]
|
|
schedule:
|
|
- cron: $cron-weekly
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build the Docker image
|
|
# Tag image to be built
|
|
# Change ${{ github.repository }} variable by another image name if you want but don't forget changing also image-tag below
|
|
run: docker build . --file Dockerfile --tag ${{ github.repository }}:latest
|
|
|
|
- name: Sysdig Secure Inline Scan
|
|
id: scan
|
|
uses: sysdiglabs/scan-action@768d7626a14897e0948ea89c8437dd46a814b163
|
|
with:
|
|
# Tag of the image to analyse.
|
|
# Change ${{ github.repository }} variable by another image name if you want but don't forget changing also image-tag above
|
|
image-tag: ${{ github.repository }}:latest
|
|
# API token for Sysdig Scanning auth
|
|
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN}}
|
|
# Sysdig secure endpoint. Please read: https://docs.sysdig.com/en/docs/administration/saas-regions-and-ip-ranges/
|
|
# US-East https://secure.sysdig.com
|
|
# US-West https://us2.app.sysdig.com
|
|
# EU https://eu1.app.sysdig.com
|
|
sysdig-secure-url: https://us2.app.sysdig.com
|
|
dockerfile-path: ./Dockerfile
|
|
input-type: docker-daemon
|
|
ignore-failed-scan: true
|
|
# Sysdig inline scanner requires privileged rights
|
|
run-as-user: root
|
|
|
|
- uses: github/codeql-action/upload-sarif@v1
|
|
#Upload SARIF file
|
|
if: always()
|
|
with:
|
|
sarif_file: ${{ steps.scan.outputs.sarifReport }} |