File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 26
26
# required for all workflows
27
27
security-events : write
28
28
29
- # required to fetch internal or private CodeQL packs
30
- packages : read
31
-
32
29
strategy :
33
30
fail-fast : false
34
31
matrix :
Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
pull_request :
12
12
workflow_call :
13
+ inputs :
14
+ ref :
15
+ required : true
16
+ type : string
13
17
14
18
concurrency :
15
19
group : dist-${{ github.ref }}
44
48
uses : actions/checkout@v4
45
49
with :
46
50
fetch-depth : 0
51
+ ref : ${{ inputs.ref }}
47
52
48
53
- uses : actions/setup-python@v5
49
54
with :
99
104
- uses : actions/checkout@v4
100
105
with :
101
106
fetch-depth : 0
107
+ ref : ${{ inputs.ref }}
102
108
103
109
- uses : actions/setup-python@v5
104
110
with :
Original file line number Diff line number Diff line change 19
19
PRODUCT_NAME : PyMongo
20
20
# Changes per branch
21
21
SILK_ASSET_GROUP : mongodb-python-driver
22
- EVERGREEN_PROJECT : mongodb -python-driver
22
+ EVERGREEN_PROJECT : mongo -python-driver
23
23
24
24
defaults :
25
25
run :
32
32
permissions :
33
33
id-token : write
34
34
contents : write
35
+ outputs :
36
+ version : ${{ steps.pre-publish.outputs.version }}
35
37
steps :
36
38
- uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
37
39
with :
@@ -44,19 +46,24 @@ jobs:
44
46
aws_secret_id : ${{ secrets.AWS_SECRET_ID }}
45
47
artifactory_username : ${{ vars.ARTIFACTORY_USERNAME }}
46
48
- uses : mongodb-labs/drivers-github-tools/python/pre-publish@v2
49
+ id : pre-publish
47
50
with :
48
51
version : ${{ inputs.version }}
49
52
dry_run : ${{ inputs.dry_run }}
50
53
51
54
build-dist :
52
55
needs : [pre-publish]
53
56
uses : ./.github/workflows/dist.yml
57
+ with :
58
+ ref : ${{ needs.pre-publish.outputs.version }}
54
59
55
60
static-scan :
56
61
needs : [pre-publish]
57
62
uses : ./.github/workflows/codeql.yml
63
+ permissions :
64
+ security-events : write
58
65
with :
59
- ref : ${{ github.ref }}
66
+ ref : ${{ needs.pre-publish.outputs.version }}
60
67
61
68
publish :
62
69
needs : [build-dist, static-scan]
You can’t perform that action at this time.
0 commit comments