Skip to content

Commit

Permalink
Merge pull request #38 from camptocamp/renovate/applications-download…
Browse files Browse the repository at this point in the history
…-1.x

Update dependency applications-download to v1
  • Loading branch information
sbrunner authored Feb 28, 2025
2 parents 466fc6d + ebb5f42 commit 0dbfaa2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/dpkg-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ camptocamp/tag-publish:latest:
ubuntu_24_04/sysvinit-utils: 3.08-6ubuntu3
ubuntu_24_04/tar: 1.35+dfsg-3build1
ubuntu_24_04/ubuntu-keyring: 2023.11.28.1
ubuntu_24_04/unminimize: 0.2.1
ubuntu_24_04/util-linux: 2.39.3-9ubuntu6.1
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ twine = "5.1.1"
PyYAML = "6.0.2"
id = "1.5.0"
security-md = "0.2.3"
applications-download = "0.8.0"
applications-download = "1.2.0"
jsonschema-validator-new = "0.3.2"
PyGithub = "2.5.0"
debian-inspector = "31.1.0"
Expand Down
14 changes: 7 additions & 7 deletions tag_publish/lib/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def _render_claims(token: str) -> str:
If a claim is not present in the claim set, then it is rendered as `MISSING`.
* `sub`: `{claims.get('sub', 'MISSING')}`
* `repository`: `{claims.get('repository', 'MISSING')}`
* `repository_owner`: `{claims.get('repository_owner', 'MISSING')}`
* `repository_owner_id`: `{claims.get('repository_owner_id', 'MISSING')}`
* `job_workflow_ref`: `{claims.get('job_workflow_ref', 'MISSING')}`
* `ref`: `{claims.get('ref')}`
* `sub`: `{claims.get("sub", "MISSING")}`
* `repository`: `{claims.get("repository", "MISSING")}`
* `repository_owner`: `{claims.get("repository_owner", "MISSING")}`
* `repository_owner_id`: `{claims.get("repository_owner_id", "MISSING")}`
* `job_workflow_ref`: `{claims.get("job_workflow_ref", "MISSING")}`
* `ref`: `{claims.get("ref")}`
See https://docs.pypi.org/trusted-publishers/troubleshooting/ for more help.
"""
Expand Down Expand Up @@ -112,7 +112,7 @@ def _get_token(hostname: str) -> str:
# occurred during minting.
if not mint_token_resp.ok:
reasons = "\n".join(
f'* `{error["code"]}`: {error["description"]}'
f"* `{error['code']}`: {error['description']}"
for error in mint_token_payload["errors"] # noqa: W604
)

Expand Down
2 changes: 1 addition & 1 deletion tag_publish/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def node(
open_file.write(f"//npm.pkg.github.com/:_authToken={os.environ['GITHUB_TOKEN']}\n")
open_file.write("always-auth=true\n")

subprocess.run(["npm", "set", "registry", f'https://{repo_config["host"]}'], cwd=cwd, check=True)
subprocess.run(["npm", "set", "registry", f"https://{repo_config['host']}"], cwd=cwd, check=True)
subprocess.run(["npm", "publish", *([] if publish else ["--dry-run"]), *args], cwd=cwd, check=True)

if is_github:
Expand Down

0 comments on commit 0dbfaa2

Please sign in to comment.