-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add scorecard analysis for dogfooding (#1073)
* fix * fix * updates * fix * comments * fix * test comment
- Loading branch information
1 parent
3a43c68
commit 676885f
Showing
5 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
File renamed without changes.
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,43 @@ | ||
name: Scorecard analysis workflow | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
analysis: | ||
name: Scorecard analysis | ||
runs-on: ubuntu-latest | ||
permissions: | ||
security-events: write | ||
|
||
steps: | ||
# TODO: if pull_request | ||
- name: "Checkout code" | ||
uses: actions/checkout@v1 | ||
|
||
- name: "Run analysis" | ||
# This is temporary for dogfooding. | ||
# We will remove the use of container and | ||
# pin the dependency by hash. | ||
# https://github.com/ossf/scorecard/issues/1072. | ||
uses: docker://laurentsimon/scorecard-action:latest | ||
with: | ||
policy_file: .github/scorecard.yml | ||
sarif_file: results.sarif | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts | ||
# Optional. | ||
- name: "Upload artifact" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: SARIF file | ||
path: results.sarif | ||
retention-days: 5 | ||
|
||
- name: "Upload SARIF results" | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: results.sarif |
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
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
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,64 @@ | ||
# Copyright 2021 Security Scorecard Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
version: 1 | ||
policies: | ||
Token-Permissions: | ||
score: 10 | ||
mode: enforced | ||
Branch-Protection: | ||
score: 10 | ||
mode: enforced | ||
Code-Review: | ||
score: 10 | ||
mode: enforced | ||
Pinned-Dependencies: | ||
score: 10 | ||
mode: enforced | ||
Security-Policy: | ||
score: 10 | ||
mode: enforced | ||
SAST: | ||
score: 10 | ||
mode: enforced | ||
Contributors: | ||
score: 10 | ||
mode: enforced | ||
Packaging: | ||
score: 10 | ||
mode: enforced | ||
Binary-Artifacts: | ||
score: 10 | ||
mode: enforced | ||
Signed-Releases: | ||
score: 10 | ||
mode: enforced | ||
Dependency-Update-Tool: | ||
score: 10 | ||
mode: enforced | ||
Fuzzing: | ||
score: 10 | ||
mode: enforced | ||
CII-Best-Practices: | ||
score: 10 | ||
mode: enforced | ||
Vulnerabilities: | ||
score: 10 | ||
mode: enforced | ||
CI-Tests: | ||
score: 10 | ||
mode: enforced | ||
Maintained: | ||
score: 10 | ||
mode: enforced |