Bump step-security/harden-runner from 2.7.0 to 2.7.1 #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Wayback Archiver. All rights reserved. | |
# Use of this source code is governed by the GNU GPL v3 | |
# license that can be found in the LICENSE file. | |
name: "Analysis" | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '33 23 * * 4' | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
scorecards: | |
name: Scorecards | |
uses: wabarc/.github/.github/workflows/reusable-scorecards.yml@main | |
if: | | |
github.event_name == 'pull_request' || | |
github.ref == 'refs/heads/main' | |
permissions: | |
# Needed to upload the results to code-scanning dashboard. | |
security-events: write | |
# Used to receive a badge. (Upcoming feature) | |
id-token: write | |
actions: read | |
contents: read | |
codeql: | |
name: CodeQL | |
permissions: | |
security-events: write | |
actions: read | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'go' ] | |
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | |
# Learn more: | |
# https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | |
uses: wabarc/.github/.github/workflows/reusable-codeql.yml@main | |
with: | |
language: ${{ matrix.language }} | |
egress-policy: 'audit' | |
nancy: | |
name: Sonatype Nancy | |
uses: wabarc/.github/.github/workflows/reusable-nancy.yml@main | |
semgrep: | |
name: Semgrep Scan | |
if: github.actor != 'dependabot[bot]' | |
uses: wabarc/.github/.github/workflows/reusable-semgrep.yml@main | |
permissions: | |
# Needed to upload the results to code-scanning dashboard. | |
security-events: write | |
actions: read | |
contents: read | |
fossa: | |
if: github.event_name != 'pull_request' | |
name: FOSSA | |
uses: wabarc/.github/.github/workflows/reusable-fossa.yml@main | |
secrets: | |
fossa-apikey: ${{ secrets.FOSSA_APIKEY }} | |
with: | |
egress-policy: 'audit' | |
dependency-review: | |
name: Dependency Review | |
uses: wabarc/.github/.github/workflows/reusable-dependency-review.yml@main | |
with: | |
egress-policy: 'audit' | |
trivy: | |
name: Trivy | |
uses: wabarc/.github/.github/workflows/reusable-trivy.yml@main | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
#actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
with: | |
egress-policy: 'audit' | |
scan-type: 'fs' | |
sarif: 'filesystem.sarif' |