Skip to content

Commit 10d40fc

Browse files
authored
Combine static_code_analysis.yml with release_notes.yml (#2337)
1 parent 0ac8308 commit 10d40fc

File tree

2 files changed

+12
-42
lines changed

2 files changed

+12
-42
lines changed

.github/workflows/release_notes.yml renamed to .github/workflows/prepare_release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Release Notes Generator
1+
name: Release Prep
22

33
on:
44
workflow_dispatch:
55
inputs:
66
branch:
7-
description: 'Branch to merge release notes into.'
7+
description: 'Branch to merge release notes and code analysis into.'
88
required: true
99
default: 'main'
1010
version:
@@ -15,7 +15,7 @@ on:
1515
'Date of the release. Must be in format YYYY-MM-DD.'
1616

1717
jobs:
18-
releasenotesgeneration:
18+
preparerelease:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
@@ -28,6 +28,8 @@ jobs:
2828
run: |
2929
python -m pip install --upgrade pip
3030
python -m pip install requests==2.31.0
31+
python -m pip install bandit==1.7.7
32+
python -m pip install .[test]
3133
3234
- name: Generate release notes
3335
env:
@@ -37,16 +39,19 @@ jobs:
3739
-v ${{ inputs.version }}
3840
-d ${{ inputs.date }}
3941
42+
- name: Save static code analysis
43+
run: bandit -r . -x ./tests,./scripts,./build -f txt -o static_code_analysis.txt --exit-zero
44+
4045
- name: Create pull request
4146
id: cpr
4247
uses: peter-evans/create-pull-request@v4
4348
with:
4449
token: ${{ secrets.GH_ACCESS_TOKEN }}
45-
commit-message: Release notes for v${{ inputs.version }}
50+
commit-message: Prepare release for v${{ inputs.version }}
4651
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
4752
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
48-
title: v${{ inputs.version }} Release Notes
49-
body: "This is an auto-generated PR to update the release notes."
50-
branch: release-notes
53+
title: v${{ inputs.version }} Release Preparation
54+
body: "This is an auto-generated PR to prepare the release."
55+
branch: prepared-release
5156
branch-suffix: short-commit-hash
5257
base: ${{ inputs.branch }}

.github/workflows/static_code_analysis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)