Skip to content

Commit 455564b

Browse files
authored
Fix: OpenSSF Scorecard.yml errors (#71)
* Fix: OpenSSF Scorecard.yml errors * Refactor: Naming convention changed to more descriptive * Add: Badges for basic workflows in README.md
1 parent 2e35caf commit 455564b

File tree

2 files changed

+30
-17
lines changed

2 files changed

+30
-17
lines changed

.github/workflows/scorecard.yml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,51 @@ on:
1919
push:
2020
branches: [ "main" ]
2121

22-
permissions: read-all
22+
permissions:
23+
contents: read
24+
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
27+
cancel-in-progress: true
2328

2429
jobs:
2530
analysis:
2631
name: Scorecard analysis
27-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-latest
33+
if: ${{ github.repository == 'OpenVisualCloud/Intel-Tiber-Broadcast-Suite' }}
2834
permissions:
2935
security-events: write
3036
id-token: write
31-
37+
contents: read
38+
actions: read
3239
steps:
33-
- name: "Harden Runner"
40+
- name: "scorecard: Harden Runner security"
3441
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
3542
with:
3643
egress-policy: audit
3744

38-
- name: "Checkout code"
39-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
45+
- name: "scorecard: Checkout code"
46+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4047
with:
4148
persist-credentials: false
4249

43-
- name: "Run analysis"
44-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
50+
- name: "scorecard: Run analysis"
51+
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
4552
with:
46-
results_file: results.sarif
53+
results_file: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif"
4754
results_format: sarif
55+
repo_token: ${{ secrets.GITHUB_TOKEN }}
4856
publish_results: true
4957

50-
- name: "Upload artifact"
51-
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
58+
# Upload the results as artifacts (optional).
59+
- name: "scorecard: Upload results artifact"
60+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
5261
with:
53-
name: SARIF file
54-
path: results.sarif
55-
retention-days: 7
62+
name: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}"
63+
path: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif"
64+
retention-days: 5
5665

57-
- name: "Upload to code-scanning"
58-
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
66+
- name: "scorecard: Upload results to code-scanning"
67+
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
5968
with:
60-
sarif_file: results.sarif
69+
sarif_file: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif"

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
> [!TIP]
44
> [Full Documentation](https://openvisualcloud.github.io/Intel-Tiber-Broadcast-Suite) for [Intel®](https://intel.com) [Tiber™ Broadcast Suite](https://openvisualcloud.github.io/Intel-Tiber-Broadcast-Suite).
55
6+
[![Linters](https://github.com/OpenVisualCloud/Intel-Tiber-Broadcast-Suite/actions/workflows/linters.yml/badge.svg)](https://github.com/OpenVisualCloud/Intel-Tiber-Broadcast-Suite/actions/workflows/linters.yml)
7+
[![dockerfiles-build](https://github.com/OpenVisualCloud/Intel-Tiber-Broadcast-Suite/actions/workflows/build_tiber.yml/badge.svg)](https://github.com/OpenVisualCloud/Intel-Tiber-Broadcast-Suite/actions/workflows/build_tiber.yml)
8+
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/OpenVisualCloud/Intel-Tiber-Broadcast-Suite/badge)](https://securityscorecards.dev/viewer/?uri=github.com/OpenVisualCloud/Intel-Tiber-Broadcast-Suite)
9+
610
## 1. Overview
711

812
The Intel® Tiber™ Broadcast Suite, is a software-based package, modular video production pipeline, designed for creation of high-performance and high-quality solutions used in live video production.

0 commit comments

Comments
 (0)