Skip to content

Commit

Permalink
Merge pull request #26 from linsyking/dev
Browse files Browse the repository at this point in the history
Update branch action policy
  • Loading branch information
linsyking authored Feb 4, 2024
2 parents b0d2a9a + 2d7240f commit 8e26cbd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build

on:
push:
branches: ['main']
branches: ['*']
pull_request:
branches: ['main']
branches: ['*']

permissions:
contents: read
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ name: 'CodeQL'

on:
push:
branches: ['main', 'dev']
branches: ['*']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main', 'dev']
schedule:
- cron: '25 19 * * 4'
branches: ['*']

jobs:
analyze:
Expand Down Expand Up @@ -46,11 +44,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
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.
Expand All @@ -63,7 +61,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -76,6 +74,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: format

on:
push:
branches: ['main']
branches: ['*']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
branches: ['*']

permissions:
contents: read
Expand Down

0 comments on commit 8e26cbd

Please sign in to comment.