Skip to content

Commit c1c6227

Browse files
committed
feat: add OpenSSF Scorecard and dependency review workflows
Signed-off-by: Savitoj Singh <5525641+savitojs@users.noreply.github.com>
1 parent fa63a76 commit c1c6227

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Dependency Review
2+
on:
3+
pull_request:
4+
branches: [main]
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
10+
jobs:
11+
dependency-review:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/dependency-review-action@v4
17+
with:
18+
fail-on-severity: high
19+
comment-summary-in-pr: always

.github/workflows/scorecard.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Scorecard analysis
2+
on:
3+
push:
4+
branches: [main]
5+
schedule:
6+
- cron: '30 1 * * 6' # Weekly Saturday 1:30 AM UTC
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
security-events: write
12+
id-token: write
13+
14+
jobs:
15+
scorecard:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
22+
- uses: ossf/scorecard-action@v2.4.3
23+
with:
24+
results_file: results.sarif
25+
results_format: sarif
26+
publish_results: true
27+
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: SARIF file
31+
path: results.sarif
32+
retention-days: 5
33+
34+
- uses: github/codeql-action/upload-sarif@v3
35+
with:
36+
sarif_file: results.sarif

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![PyPI version](https://badge.fury.io/py/gtime.svg?maxAge=0)](https://badge.fury.io/py/gtime)
44
[![Python Support](https://img.shields.io/pypi/pyversions/gtime.svg?maxAge=0)](https://pypi.org/project/gtime/)
55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/savitojs/gtime/badge)](https://scorecard.dev/viewer/?uri=github.com/savitojs/gtime)
67

78
> **A modern, colorful Python CLI utility for global time zone lookup, comparison, and management**
89

0 commit comments

Comments
 (0)