Skip to content

Commit f730638

Browse files
committed
chore: openssf scoring
1 parent 80e7bf7 commit f730638

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

.github/workflows/clean.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
name: Clean up anaconda repository
66

7+
permissions: read-all
8+
79
on:
810
schedule:
911
- cron: "0 0 * * *"

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
name: pre-commit
66

7+
permissions: read-all
8+
79
on:
810
pull_request:
911
push:

.github/workflows/scorecard.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# SPDX-FileCopyrightText: 2023 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# This workflow uses actions that are not certified by GitHub. They are provided
6+
# by a third-party and are governed by separate terms of service, privacy
7+
# policy, and support documentation.
8+
9+
name: Scorecard supply-chain security
10+
on:
11+
# For Branch-Protection check. Only the default branch is supported. See
12+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
13+
branch_protection_rule:
14+
# To guarantee Maintained check is occasionally updated. See
15+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
16+
schedule:
17+
- cron: '44 2 * * 0'
18+
push:
19+
branches: [ "main" ]
20+
21+
# Declare default permissions as read only.
22+
permissions: read-all
23+
24+
jobs:
25+
analysis:
26+
name: Scorecard analysis
27+
runs-on: ubuntu-latest
28+
permissions:
29+
# Needed to upload the results to code-scanning dashboard.
30+
security-events: write
31+
# Needed to publish results and get a badge (see publish_results below).
32+
id-token: write
33+
# Uncomment the permissions below if installing in a private repository.
34+
# contents: read
35+
# actions: read
36+
37+
steps:
38+
- name: "Checkout code"
39+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40+
with:
41+
persist-credentials: false
42+
43+
- name: "Run analysis"
44+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
45+
with:
46+
results_file: results.sarif
47+
results_format: sarif
48+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
49+
# - you want to enable the Branch-Protection check on a *public* repository, or
50+
# - you are installing Scorecard on a *private* repository
51+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
52+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
53+
54+
# Public repositories:
55+
# - Publish results to OpenSSF REST API for easy access by consumers
56+
# - Allows the repository to include the Scorecard badge.
57+
# - See https://github.com/ossf/scorecard-action#publishing-results.
58+
# For private repositories:
59+
# - `publish_results` will always be set to `false`, regardless
60+
# of the value entered here.
61+
publish_results: true
62+
63+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
64+
# format to the repository Actions tab.
65+
# - name: "Upload artifact"
66+
# uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
67+
# with:
68+
# name: SARIF file
69+
# path: results.sarif
70+
# retention-days: 5
71+
72+
# # Upload the results to GitHub's code scanning dashboard (optional).
73+
# # Commenting out will disable upload of results to your repo's Code Scanning dashboard
74+
# - name: "Upload to code-scanning"
75+
# uses: github/codeql-action/upload-sarif@v3
76+
# with:
77+
# sarif_file: results.sarif

SECURITY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2023 Intel Corporation
3+
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
7+
# Security Policy
8+
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.
9+
10+
## Reporting a Vulnerability
11+
Please report any security vulnerabilities in this project utilizing the guidelines [here](https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html).

0 commit comments

Comments
 (0)