Skip to content

Commit 9f6d92d

Browse files
authored
ci: 🔒 add security scanning workflows (#85)
# Description Adds the security workflows, using the reusable ones I made, so that they get synced. No review needed.
1 parent 4793c79 commit 9f6d92d

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.github/sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ group:
3131
dest: .github/workflows/build-website.yml
3232
- source: .github/workflows/update-version.yml
3333
dest: .github/workflows/update-version.yml
34+
- source: .github/workflows/scorecards.yml
35+
dest: .github/workflows/scorecards.yml
3436
- source: .github/_project-dependabot.yml
3537
dest: .github/dependabot.yml
3638

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: "Security: Dependency Review"
10+
on: pull_request
11+
12+
# Limit token permissions for security
13+
permissions: read-all
14+
15+
jobs:
16+
dependency-review:
17+
uses: seedcase-project/.github/.github/workflows/reusable-dependency-review.yml@main

.github/workflows/scorecards.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
name: "Security: Scorecard"
5+
on:
6+
# For Branch-Protection check. Only the default branch is supported. See
7+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
8+
branch_protection_rule:
9+
# To guarantee Maintained check is occasionally updated. See
10+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
11+
schedule:
12+
- cron: '20 7 * * 2'
13+
push:
14+
branches:
15+
- main
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
analysis:
22+
name: Analysis
23+
uses: seedcase-project/.github/.github/workflows/reusable-scorecards.yml@main
24+
permissions:
25+
# Needed to upload the results to code-scanning dashboard.
26+
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write

0 commit comments

Comments
 (0)