diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 39c4703..38f57af 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,9 +13,9 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: [ "master", "main", $default-branch ] pull_request: - branches: [ "master" ] + branches: [ "master", "main", $default-branch ] schedule: - cron: '25 5 * * 3' diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aa8a82f..3acfc96 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,9 +5,9 @@ name: Go on: push: - branches: [ "master" ] + branches: [ "master", "main", $default-branch ] pull_request: - branches: [ "master" ] + branches: [ "master", "main", $default-branch ] permissions: contents: read @@ -32,5 +32,5 @@ jobs: - name: Build run: go build -v ./... - #- name: Test - # run: go test -v ./... + - name: Test + run: go test -v ./... diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 122b331..60518a5 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -12,7 +12,7 @@ on: schedule: - cron: '18 8 * * 4' push: - branches: [ "master" ] + branches: [ "master", "main", $default-branch ] # Declare default permissions as read only. permissions: read-all diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index fa8271e..2b351aa 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -30,9 +30,9 @@ name: SonarCloud analysis on: push: - branches: [ "main" ] + branches: [ "master", "main", $default-branch ] pull_request: - branches: [ "main" ] + branches: [ "master", "main", $default-branch ] workflow_dispatch: permissions: