Skip to content

Commit

Permalink
ci: use reusable Scorecard workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Oct 10, 2023
1 parent 05aaffb commit 27c1271
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 83 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read
jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
schedule:
- cron: "34 0 * * 3"

permissions:
contents: read
jobs:
trigger:
uses: statnett/github-workflows/.github/workflows/codeql.yaml@main
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
---
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]
name: Dependency Review
on:
pull_request:

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- edited
- synchronize

permissions:
contents: read
jobs:
trigger:
uses: statnett/github-workflows/.github/workflows/lint-pr.yaml@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
workflow_dispatch:

permissions:
contents: read
jobs:
trigger:
uses: statnett/github-workflows/.github/workflows/release-please.yaml@main
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/scorecard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Scorecard supply-chain security
on:
branch_protection_rule:
schedule:
- cron: '20 7 * * 2'
push:
branches:
- main

permissions:
contents: read
jobs:
trigger:
uses: statnett/github-workflows/.github/workflows/scorecard.yaml@main
permissions:
security-events: write
id-token: write
contents: read
actions: read
72 changes: 0 additions & 72 deletions .github/workflows/scorecards.yaml

This file was deleted.

0 comments on commit 27c1271

Please sign in to comment.