-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reusable workflows #256
Merged
Merged
Reusable workflows #256
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6b0ea83
Migrate linter to reusable workflows
waybackarchiver cf41fb1
Migrate stale to reusable workflows
waybackarchiver 602549c
Migrate license to reusable workflow
waybackarchiver 9b96299
Migrate analysis to reusable workflows
waybackarchiver 6f60557
Migrate builder to reusable workflows
waybackarchiver b82a0b1
Migrate release to reusable workflows
waybackarchiver 162121d
Use harden runner for testing workflow
waybackarchiver 6bde014
Use harden runner for dispatch workflow
waybackarchiver 6b95ce9
Migrate snapcraft to reusable workflows
waybackarchiver f5b2405
Use harden runner for docker workflow
waybackarchiver b687fd3
Remove dispatch job from docker workflow
waybackarchiver 9b33d45
Add allowed endpoints
waybackarchiver eb66826
Add allow endpoint
waybackarchiver dd9bbdc
Remove upload artifacts job
waybackarchiver 3c5c159
Rename
waybackarchiver 9bdf569
Move write permission to job level
waybackarchiver File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||
Check failure Code scanning / Scorecard Token-Permissions
score is 0: jobLevel 'security-events' permission set to 'write'
Click Remediation section below to solve this issue
|
||
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / Scorecard
Token-Permissions