Skip to content

Small changes to environment variable handling in workflows#1962

Merged
sschuberth merged 3 commits intomainfrom
workflow-variables
Apr 30, 2026
Merged

Small changes to environment variable handling in workflows#1962
sschuberth merged 3 commits intomainfrom
workflow-variables

Conversation

@lamppu
Copy link
Copy Markdown
Member

@lamppu lamppu commented Apr 30, 2026

The Unit-test and Playwright workflows no longer need environments with restrictions to access secrets, so remove those environments from the workflows altogether. One remaining variable is read from repository variables for convenience, as it's referenced in several places. Others are removed/hard-coded.

This should make it so that workflows can access the needed variables even if the PR comes from a fork.

This variable has been completely removed.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.io>
@lamppu lamppu temporarily deployed to test-environment April 30, 2026 12:26 — with GitHub Actions Inactive
@lamppu lamppu temporarily deployed to unittest-environment April 30, 2026 12:26 — with GitHub Actions Inactive
@lamppu lamppu temporarily deployed to unittest-environment April 30, 2026 12:27 — with GitHub Actions Inactive
@lamppu lamppu had a problem deploying to test-environment April 30, 2026 12:27 — with GitHub Actions Failure
@lamppu lamppu force-pushed the workflow-variables branch from 6d9f109 to 2c827ce Compare April 30, 2026 12:47
@lamppu lamppu temporarily deployed to test-environment April 30, 2026 12:47 — with GitHub Actions Inactive
@lamppu lamppu deployed to unittest-environment April 30, 2026 12:47 — with GitHub Actions Active
@lamppu lamppu deployed to test-environment April 30, 2026 12:50 — with GitHub Actions Active
@lamppu lamppu force-pushed the workflow-variables branch from 8b5d9d5 to a376fb2 Compare April 30, 2026 13:12
@lamppu lamppu marked this pull request as ready for review April 30, 2026 13:28
environment: test-environment
env:
DATABASE_URL: ${{ vars.DATABASE_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the commit message title, the leading "backtick" around NEXTAUTH_SECRET is actually a "fronttick", it seems 😸

lamppu added 2 commits April 30, 2026 16:54
Also remove the now unneeded secret from the Playwright workflow.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.io>
These workflows no longer need restrictions to accessing secrets, and the
`DATABASE_URL` environment variable can now be read from repository
variables.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.io>
@lamppu lamppu force-pushed the workflow-variables branch from a376fb2 to 950bf52 Compare April 30, 2026 13:55
@lamppu lamppu requested a review from sschuberth April 30, 2026 13:55
@sschuberth sschuberth enabled auto-merge (rebase) April 30, 2026 14:03
@sschuberth sschuberth merged commit 3ddbadb into main Apr 30, 2026
6 checks passed
@sschuberth sschuberth deleted the workflow-variables branch April 30, 2026 14:04
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