Skip to content

Commit

Permalink
ci: use reusable QA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Oct 11, 2023
1 parent 59aa342 commit 910535e
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: CodeQL
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "34 0 * * 3"

permissions:
contents: read
jobs:
trigger:
uses: statnett/github-workflows/.github/workflows/codeql.yaml@main
with:
language: go
permissions:
actions: read
contents: read
security-events: write
3 changes: 2 additions & 1 deletion .github/workflows/go-releaser.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
name: Go Releaser

on:
push:
tags:
- v*

permissions:
contents: read
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
name: Lint PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
contents: read
jobs:
trigger:
uses: statnett/github-workflows/.github/workflows/lint-pr.yaml@main
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
name: Release Please

on:
push:
branches:
- 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
3 changes: 2 additions & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: Build Snapshot

on:
workflow_dispatch:

permissions:
contents: read
jobs:
snapshot:
name: Build Snapshot
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: Test

on:
pull_request: {}

permissions:
contents: read
jobs:
test:
name: Test
Expand Down

0 comments on commit 910535e

Please sign in to comment.