allow workflows on release/* branches

This commit is contained in:
Jacob Overgaard
2024-05-28 14:51:24 +02:00
parent f96ed4362a
commit 4f7a027dfe
4 changed files with 35 additions and 24 deletions

View File

@@ -4,10 +4,12 @@ on:
push:
branches:
- main
- release/*
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
- release/*
workflow_dispatch:
inputs:
issue_number:

View File

@@ -5,9 +5,13 @@ name: Build and test
on:
push:
branches: [main]
branches:
- main
- release/*
pull_request:
branches: [main]
branches:
- main
- release/*
# Allows GitHub to use this workflow to validate the merge queue
merge_group:

View File

@@ -9,14 +9,17 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'
on:
push:
branches: [ "main" ]
branches:
- main
- release/*
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches:
- main
- release/*
schedule:
- cron: '33 2 * * 1'
@@ -32,25 +35,25 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

View File

@@ -7,7 +7,9 @@ name: DevSkim
on:
push:
branches: [ "main" ]
branches:
- main
- release/*
schedule:
- cron: '19 14 * * 5'
@@ -28,7 +30,7 @@ jobs:
with:
directory-to-scan: src
should-scan-archives: false
ignore-globs: "**/.git/**,*.md,*.mdx,*.stories.ts,*.js"
ignore-globs: '**/.git/**,*.md,*.mdx,*.stories.ts,*.js'
- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3