File tree 14 files changed +63
-19
lines changed
14 files changed +63
-19
lines changed Original file line number Diff line number Diff line change 18
18
- ' mkdocs.yml'
19
19
- ' Makefile'
20
20
21
+ permissions :
22
+ contents : read
23
+
21
24
jobs :
22
25
docs :
23
26
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 7
7
- cron : ' 0 * * * *'
8
8
9
9
permissions :
10
- id-token : write
11
- actions : read
12
- checks : read
13
10
contents : read
14
- deployments : read
15
- issues : read
16
- discussions : read
17
- packages : read
18
- pages : read
19
- pull-requests : read
20
- repository-projects : read
21
- security-events : read
22
- statuses : read
23
11
24
12
jobs :
25
13
dispatch_token :
14
+ permissions :
15
+ id-token : write
16
+ actions : read
17
+ checks : read
18
+ deployments : read
19
+ issues : read
20
+ discussions : read
21
+ packages : read
22
+ pages : read
23
+ pull-requests : read
24
+ repository-projects : read
25
+ security-events : read
26
+ statuses : read
26
27
concurrency :
27
28
group : analytics
28
29
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 7
7
workflow_dispatch : {}
8
8
9
9
permissions :
10
- id-token : write
11
10
contents : write
12
- pages : write
13
11
14
12
jobs :
15
13
docs :
16
14
runs-on : ubuntu-latest
17
15
environment : Docs
16
+ permissions :
17
+ id-token : write
18
18
steps :
19
19
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
20
20
- name : Set up Python
Original file line number Diff line number Diff line change 23
23
- ' powertools-validation/**'
24
24
- ' pom.xml'
25
25
- ' .github/workflows/pr_artifacts_size.yml'
26
+
27
+ permissions :
28
+ contents : read
29
+
26
30
jobs :
27
31
codecheck :
28
32
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 45
45
- ' pom.xml'
46
46
- ' examples/pom.xml'
47
47
- ' .github/workflows/**'
48
+
49
+ permissions :
50
+ contents : read
51
+
48
52
jobs :
49
53
build-corretto :
50
54
runs-on : ubuntu-latest
58
62
AWS_REGION : eu-west-1
59
63
permissions :
60
64
id-token : write # needed to interact with GitHub's OIDC Token endpoint.
61
- contents : read
62
65
steps :
63
66
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
64
67
- name : Setup java
Original file line number Diff line number Diff line change 41
41
- ' pom.xml'
42
42
- ' examples/pom.xml'
43
43
- ' .github/workflows/**'
44
+
45
+ permissions :
46
+ contents : read
47
+
44
48
jobs :
45
49
build-corretto :
46
50
runs-on : ubuntu-latest
54
58
AWS_REGION : eu-west-1
55
59
permissions :
56
60
id-token : write # needed to interact with GitHub's OIDC Token endpoint.
57
- contents : read
58
61
steps :
59
62
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
60
63
- name : Setup java
Original file line number Diff line number Diff line change 11
11
- v2
12
12
paths :
13
13
- ' examples/**'
14
+
15
+ permissions :
16
+ contents : read
17
+
14
18
jobs :
15
19
linter :
16
20
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 4
4
types :
5
5
- published
6
6
workflow_dispatch : {}
7
+
8
+ permissions :
9
+ contents : read
10
+
7
11
jobs :
8
12
publish :
9
13
runs-on : ubuntu-latest
14
+ permissions :
15
+ id-token : write
10
16
steps :
11
17
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
12
18
- name : Set up Maven Central Repository
Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
jobs :
10
13
update_release_draft :
11
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ id-token : write
12
17
steps :
13
18
- uses : release-drafter/release-drafter@569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e # v5.23.0
14
19
env :
Original file line number Diff line number Diff line change 6
6
description : ' Release number to upgrade to. For example X.X.X. Follow Semantic Versioning when deciding on next version.'
7
7
required : true
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
jobs :
10
13
build :
11
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ id-token : write
12
17
steps :
13
18
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
14
19
- name : Get current date
Original file line number Diff line number Diff line change 27
27
paths :
28
28
- ' powertools-e2e-tests/**'
29
29
30
+ permissions :
31
+ contents : read
32
+
30
33
jobs :
31
34
e2e :
32
35
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 27
27
paths :
28
28
- ' powertools-e2e-tests/**'
29
29
30
+ permissions :
31
+ contents : read
32
+
30
33
jobs :
31
34
e2e :
32
35
runs-on : ubuntu-latest
40
43
JAVA_VERSION : ${{ matrix.java }}
41
44
permissions :
42
45
id-token : write # needed to interact with GitHub's OIDC Token endpoint.
43
- contents : read
44
46
steps :
45
47
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
46
48
- name : Setup java
Original file line number Diff line number Diff line change 19
19
paths :
20
20
- " .github/workflows/**"
21
21
22
+ permissions :
23
+ contents : read
24
+
22
25
jobs :
23
26
enforce_pinned_workflows :
24
27
name : Harden Security
25
28
runs-on : ubuntu-latest
26
- permissions :
27
- contents : read # checkout code and subsequently GitHub action workflows
28
29
steps :
29
30
- name : Checkout code
30
31
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
Original file line number Diff line number Diff line change 19
19
- ' powertools-test-suite/**'
20
20
- ' pom.xml'
21
21
- ' .github/workflows/**'
22
+
23
+ permissions :
24
+ contents : read
25
+
22
26
jobs :
23
27
codecheck :
24
28
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments