-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate analysis to reusable workflows
codeql-analysis.yml -> analysis.yml Rename workflow CodeQL to Analysis Add Scorecards supply-chain security analysis Add dependency review pin dependencies Using reusable dependency review Call reusable dependency review workflow without args
- Loading branch information
1 parent
a0a4dfc
commit ff6011c
Showing
2 changed files
with
68 additions
and
188 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# 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: | ||
analysis: | ||
name: Scorecards | ||
uses: wabarc/.github/.github/workflows/reusable-scorecards.yml@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 }} | ||
config-file: './.github/codeql/codeql-config.yml' | ||
|
||
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 | ||
|
||
fossa: | ||
if: github.repository == 'wabarc/wayback' | ||
name: FOSSA | ||
uses: wabarc/.github/.github/workflows/reusable-fossa.yml@main | ||
secrets: | ||
fossa-apikey: ${{ secrets.FOSSA_APIKEY }} | ||
|
||
dependency-review: | ||
name: Dependency Review | ||
uses: wabarc/.github/.github/workflows/reusable-dependency-review.yml@main |
This file was deleted.
Oops, something went wrong.