77
88 workflow_dispatch :
99
10+ permissions :
11+ contents : read
12+
1013jobs :
1114 build-and-publish-pypi :
1215 name : Build and publish to PyPI
@@ -15,11 +18,16 @@ jobs:
1518 contents : write
1619
1720 steps :
21+ - name : Harden the runner (Audit all outbound calls)
22+ uses : step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
23+ with :
24+ egress-policy : audit
25+
1826 - name : Checkout code
19- uses : actions/checkout@v4
27+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2028
2129 - name : Set up Python
22- uses : actions/setup-python@v4
30+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
2331 with :
2432 python-version : ' 3.10'
2533
4654 twine upload dist/*
4755
4856 - name : Upload built artifacts
49- uses : actions/upload-artifact@v4
57+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5058 with :
5159 name : dist
5260 path : dist
@@ -59,11 +67,16 @@ jobs:
5967 contents : write
6068
6169 steps :
70+ - name : Harden the runner (Audit all outbound calls)
71+ uses : step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
72+ with :
73+ egress-policy : audit
74+
6275 - name : Checkout code
63- uses : actions/checkout@v4
76+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6477
6578 - name : Download built artifacts
66- uses : actions/download-artifact@v4
79+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
6780 with :
6881 name : dist
6982 path : dist
7891 fi
7992
8093 - name : Release to GitHub
81- uses : softprops/action-gh-release@v2
94+ uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
8295 with :
8396 generate_release_notes : true
8497 draft : false
@@ -92,21 +105,26 @@ jobs:
92105 packages : write
93106
94107 steps :
108+ - name : Harden the runner (Audit all outbound calls)
109+ uses : step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
110+ with :
111+ egress-policy : audit
112+
95113 - name : Checkout code
96- uses : actions/checkout@v4
114+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
97115
98116 - name : Log in to GitHub Container Registry
99- uses : docker/login-action@v3
117+ uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
100118 with :
101119 registry : ghcr.io
102120 username : ${{ github.actor }}
103121 password : ${{ secrets.GITHUB_TOKEN }}
104122
105123 - name : Set up Docker Buildx
106- uses : docker/setup-buildx-action@v3
124+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
107125
108126 - name : Build and Push Docker image
109- uses : docker/build-push-action@v5
127+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
110128 with :
111129 context : .
112130 file : .container/minimal_build/Dockerfile
0 commit comments