Skip to content

Commit 42da7b0

Browse files
committed
try moving permissions in workflow for publishing to prod
currently failing: cannot find the release
1 parent 8219160 commit 42da7b0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/python_deploy_prod.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ concurrency:
2323
group: ${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.release-tag || github.run_id }}
2424
cancel-in-progress: true
2525

26-
permissions:
27-
contents: read
28-
actions: read
29-
3026
jobs:
3127
call-workflow-conda-release:
3228
name: Publish production Conda package on JFrog Artifactory
3329
if: ${{ github.event_name == 'release' || github.event.inputs.publish-conda == 'true' }}
3430
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_conda_assets.yml@main
31+
permissions:
32+
contents: read
33+
actions: read
3534
with:
3635
virtual-repo-names: '["public-noremote-conda-prod"]'
3736
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
@@ -42,6 +41,9 @@ jobs:
4241
name: Publish production PyPI package (JFrog Artifactory, PyPI)
4342
if: ${{ github.event_name == 'release' || github.event.inputs.publish-pypi == 'true' }}
4443
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@main
44+
permissions:
45+
contents: read
46+
actions: read
4547
with:
4648
package-name: 'mira-simpeg'
4749
virtual-repo-names: '["public-pypi-prod", "pypi"]'

0 commit comments

Comments
 (0)