Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use reusable Scorecard workflow #241

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading