File tree 8 files changed +71
-44
lines changed
8 files changed +71
-44
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,14 @@ jobs:
93
93
make release-docs VERSION=${RELEASE_TAG_VERSION} ALIAS="latest"
94
94
poetry run mike set-default --push latest
95
95
- name : Release API docs to release version
96
- uses : peaceiris/actions-gh-pages@v3
96
+ uses : peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
97
97
with :
98
98
github_token : ${{ secrets.GITHUB_TOKEN }}
99
99
publish_dir : ./api
100
100
keep_files : true
101
101
destination_dir : ${{ env.RELEASE_TAG_VERSION }}/api
102
102
- name : Release API docs to latest
103
- uses : peaceiris/actions-gh-pages@v3
103
+ uses : peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
104
104
with :
105
105
github_token : ${{ secrets.GITHUB_TOKEN }}
106
106
publish_dir : ./api
Original file line number Diff line number Diff line change 12
12
default : " v1.22.0"
13
13
required : true
14
14
workflow_run :
15
- workflows : [ "Publish to PyPi" ]
15
+ workflows : ["Publish to PyPi"]
16
16
types :
17
17
- completed
18
18
19
-
20
19
jobs :
21
20
build-layer :
22
21
runs-on : ubuntu-latest
@@ -25,16 +24,16 @@ jobs:
25
24
working-directory : ./layer
26
25
steps :
27
26
- name : checkout
28
- uses : actions/checkout@v2
27
+ uses : actions/checkout@v3
29
28
- name : Setup Node.js
30
29
uses : actions/setup-node@v3
31
30
with :
32
- node-version : ' 16.12'
31
+ node-version : " 16.12"
33
32
- name : Setup python
34
33
uses : actions/setup-python@v4
35
34
with :
36
- python-version : ' 3.9'
37
- cache : ' pip'
35
+ python-version : " 3.9"
36
+ cache : " pip"
38
37
- name : Set release notes tag
39
38
run : |
40
39
RELEASE_INPUT=${{ inputs.latest_published_version }}
Original file line number Diff line number Diff line change @@ -49,11 +49,10 @@ jobs:
49
49
- name : Complexity baseline
50
50
run : make complexity-baseline
51
51
- name : Upload coverage to Codecov
52
- uses : codecov/codecov-action@v3 .1.0
52
+ uses : codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 3 .1.0
53
53
with :
54
54
file : ./coverage.xml
55
55
# flags: unittests
56
56
env_vars : OS,PYTHON
57
57
name : aws-lambda-powertools-python-codecov
58
58
# fail_ci_if_error: true # failing more consistently making CI unreliable despite all tests above passing
59
- token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 27
27
python-version : " 3.8"
28
28
# Maintenance: temporarily until we drop Python 3.6 and make cfn-lint a dev dependency
29
29
- name : Setup Cloud Formation Linter with Latest Version
30
- uses : scottbrenner/cfn-lint-action@v2
30
+ uses : scottbrenner/cfn-lint-action@ee9ee62016ef62c5fd366e6be920df4b310ed353 # v2.2.4
31
31
- name : Install dependencies
32
32
run : make dev
33
33
- name : Lint documentation
41
41
- name : Build docs website and API reference
42
42
run : make release-docs VERSION="develop" ALIAS="stage"
43
43
- name : Deploy all docs
44
- uses : peaceiris/actions-gh-pages@v3
44
+ uses : peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
45
45
with :
46
46
github_token : ${{ secrets.GITHUB_TOKEN }}
47
47
publish_dir : ./api
Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ jobs:
49
49
make release-docs VERSION=${RELEASE_TAG_VERSION} ALIAS="latest"
50
50
poetry run mike set-default --push latest
51
51
- name : Release API docs to release version
52
- uses : peaceiris/actions-gh-pages@v3
52
+ uses : peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
53
53
with :
54
54
github_token : ${{ secrets.GITHUB_TOKEN }}
55
55
publish_dir : ./api
56
56
keep_files : true
57
57
destination_dir : ${{ env.RELEASE_TAG_VERSION }}/api
58
58
- name : Release API docs to latest
59
- uses : peaceiris/actions-gh-pages@v3
59
+ uses : peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
60
60
with :
61
61
github_token : ${{ secrets.GITHUB_TOKEN }}
62
62
publish_dir : ./api
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: Release Drafter
2
2
3
3
on :
4
4
push :
5
- # branches to consider in the event; optional, defaults to all
6
5
branches :
7
6
- develop
8
7
workflow_dispatch :
11
10
update_release_draft :
12
11
runs-on : ubuntu-latest
13
12
steps :
14
- - uses : release-drafter/release-drafter@v5
13
+ - uses : release-drafter/release-drafter@ac463ffd9cc4c6ad5682af93dc3e3591c4657ee3 # v5.20.0
15
14
env :
16
15
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -26,33 +26,31 @@ jobs:
26
26
strategy :
27
27
fail-fast : false
28
28
matrix :
29
- region : [
30
- " af-south-1" ,
31
- # "eu-central-1",
32
- # "us-east-1",
33
- # "us-east-2",
34
- # "us-west-1",
35
- # "us-west-2",
36
- # "ap-east-1",
37
- # "ap-south-1",
38
- # "ap-northeast-1",
39
- # "ap-northeast-2",
40
- # "ap-southeast-1",
41
- # "ap-southeast-2",
42
- # "ca-central-1",
43
- # "eu-west-1",
44
- # "eu-west-2",
45
- # "eu-west-3",
46
- # "eu-south-1",
47
- # "eu-north-1",
48
- # "sa-east-1",
49
- # "ap-southeast-3",
50
- # "ap-northeast-3",
51
- # "me-south-1"
52
- ]
29
+ region : ["af-south-1"]
30
+ # "eu-central-1",
31
+ # "us-east-1",
32
+ # "us-east-2",
33
+ # "us-west-1",
34
+ # "us-west-2",
35
+ # "ap-east-1",
36
+ # "ap-south-1",
37
+ # "ap-northeast-1",
38
+ # "ap-northeast-2",
39
+ # "ap-southeast-1",
40
+ # "ap-southeast-2",
41
+ # "ca-central-1",
42
+ # "eu-west-1",
43
+ # "eu-west-2",
44
+ # "eu-west-3",
45
+ # "eu-south-1",
46
+ # "eu-north-1",
47
+ # "sa-east-1",
48
+ # "ap-southeast-3",
49
+ # "ap-northeast-3",
50
+ # "me-south-1"
53
51
steps :
54
52
- name : checkout
55
- uses : actions/checkout@v2
53
+ uses : actions/checkout@v3
56
54
- name : aws credentials
57
55
uses : aws-actions/configure-aws-credentials@v1
58
56
with :
@@ -61,12 +59,12 @@ jobs:
61
59
- name : Setup Node.js
62
60
uses : actions/setup-node@v3
63
61
with :
64
- node-version : ' 16.12'
62
+ node-version : " 16.12"
65
63
- name : Setup python
66
64
uses : actions/setup-python@v4
67
65
with :
68
- python-version : ' 3.9'
69
- cache : ' pip'
66
+ python-version : " 3.9"
67
+ cache : " pip"
70
68
- name : install cdk and deps
71
69
run : |
72
70
npm install -g aws-cdk@2.29.0
Original file line number Diff line number Diff line change
1
+ name : Lockdown untrusted workflows
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - " .github/workflows/**"
7
+ pull_request :
8
+ paths :
9
+ - " .github/workflows/**"
10
+
11
+ jobs :
12
+ enforce_pinned_workflows :
13
+ name : Harden Security
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v3
18
+ - name : Ensure 3rd party workflows have SHA pinned
19
+ uses : zgosalvez/github-actions-ensure-sha-pinned-actions@6ca5574367befbc9efdb2fa25978084159c5902d # v1.3.0
20
+ with :
21
+ # Trusted GitHub Actions and/or organizations
22
+ allowlist : |
23
+ aws-actions/
24
+ actions/checkout
25
+ actions/github-script
26
+ actions/setup-node
27
+ actions/setup-python
28
+ actions/upload-artifact
29
+ actions/download-artifact
30
+ github/codeql-action/init
31
+ github/codeql-action/analyze
32
+ dependabot/fetch-metadata
You can’t perform that action at this time.
0 commit comments