Skip to content

Commit e9e25df

Browse files
authored
Merge pull request #93 from andywick-aws/action-updates
Workflow action updates
2 parents d41fe7c + 62e3669 commit e9e25df

File tree

7 files changed

+37
-9
lines changed

7 files changed

+37
-9
lines changed

.github/workflows/bandit.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: bandit - Python Scan
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
build:

.github/workflows/cfn-nag.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: cfn-nag - CloudFormation Scan
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
build:

.github/workflows/checkov.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: checkov - CloudFormation Scan
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
build:

.github/workflows/markdown-links.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Markdown Link Check
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
markdown-link-check:

.github/workflows/pylic.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: pylic - Python License Check
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
Linting:
@@ -27,7 +31,7 @@ jobs:
2731
uses: actions/cache@v3
2832
with:
2933
path: ~/.local # the path depends on the OS
30-
key: poetry-no-dev-2 # increment to reset cache
34+
key: poetry-no-dev-3 # increment to reset cache
3135
- name: Install Poetry
3236
uses: snok/install-poetry@v1
3337
with:
@@ -38,7 +42,7 @@ jobs:
3842
# load cached venv if cache exists
3943
#----------------------------------------------
4044
- name: Load cached venv
41-
id: cached-poetry-no-dev-dependencies
45+
id: cached-poetry-no-dev-dependencies-v1
4246
uses: actions/cache@v3
4347
with:
4448
path: .venv

.github/workflows/safety.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: safety - Python Dependency Check
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
Linting:

.github/workflows/static-checking.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Static Checks (mypy, flake8, black, isort)
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
48

59
jobs:
610
Linting:

0 commit comments

Comments
 (0)