Skip to content

Change token type to SecretStr in Settings - #29

Draft
colindean wants to merge 9 commits into
mainfrom
secretstr
Draft

Change token type to SecretStr in Settings#29
colindean wants to merge 9 commits into
mainfrom
secretstr

Conversation

@colindean

Copy link
Copy Markdown
Collaborator

These really should be secret strings, so we can simply emit the settings object for debugging purposes.

colindean and others added 9 commits January 27, 2026 11:49
These really should be secret strings, so we can simply emit the settings object for debugging purposes.

Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
This requires all extenders of Settings to use Pydantic, though. 

Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
When the last commit changed the Settings token type to a SecretStr— a change done using GitHub editor without mypy running— I neglected to account for getting the secret value.

Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
because I can't output GitHub format and Full format simultaneously?

Signed-off-by: Colin Dean <colin.dean@target.com>
The docs don't seem to represent this well: 

This indicates that failure() will be true if anything fails:

https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#failure

but I think "continue-on-error" enables failure() to pass on a failure.

So we need this explicit check after all, per:

https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#failure-with-conditions

Signed-off-by: Colin Dean <colindean@users.noreply.github.com>
Comment on lines +49 to +56
if: |
${{
failure()
|| steps.rufffmt.conclusion == 'failure'
|| steps.ruffcheck.conclusion == 'failure'
|| steps.mypy.conclusion == 'failure'
|| steps.pytest.conclusion == 'failure'
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants