Skip to content

Conversation

@sudo-kraken
Copy link
Contributor

feat(ci): tidy up workflows and implement a consistent style

all workflows now use ubuntu-24.04 as the runner type to match the release workflows

codeql.yml

  • bump actions to v3
  • add least-privilege perms + concurrency to stop duplicate runs
  • ignore docs only changes

conflict_labeler.yml

  • run on opened, reopened, and synchronize
  • bump action version
  • add concurrency group to avoid duplicate labeling

cypress.yml

  • skip docs-only changes; don’t run on draft PRs
  • add concurrency to stop duplicate runs + 10m timeout

docs-deploy.yml

  • add configure-pages@v5 and bump upload-pages-artifact to v4
  • set explicit pages/id-token perms + concurrency
  • minor cleanups (working-directory, ubuntu-24.04)

helm.yml

  • switch oras discover to oras manifest fetch
  • add concurrency to stop duplicate runs

lint-helm-charts.yml

  • bump action versions
  • enforce version bumps (--check-version-increment=true)
  • add least-privilege perms + concurrency to stop duplicate runs

support.yml

  • add least-privilege perms

test-docs-deploy.yml

  • add least-privilege perms + concurrency to stop duplicate runs

@gauthier-th gauthier-th changed the title Feat update remaining workflows ci: update workflows architecture Sep 15, 2025
all workflows now use ubuntu-24.04 as the runner type to match the release workflows

codeql.yml
 - bump actions to v3
 - add least-privilege perms + concurrency to stop duplicate runs
 - ignore docs only changes

conflict_labeler.yml
 - run on opened, reopened, and synchronize
 - bump action version
 - add concurrency group to avoid duplicate labeling

cypress.yml
 - skip docs-only changes; don’t run on draft PRs
 - add concurrency to stop duplicate runs + 10m timeout

docs-deploy.yml
 - add configure-pages@v5 and bump upload-pages-artifact to v4
 - set explicit pages/id-token perms + concurrency
 - minor cleanups (working-directory, ubuntu-24.04)

helm.yml
 - switch oras discover to oras manifest fetch
 - add concurrency to stop duplicate runs

lint-helm-charts.yml
 - bump action versions
 - enforce version bumps (--check-version-increment=true)
 - add least-privilege perms + concurrency to stop duplicate runs

support.yml
 - add least-privilege perms

test-docs-deploy.yml
 - add least-privilege perms + concurrency to stop duplicate runs
@gauthier-th gauthier-th changed the title ci: update workflows architecture ci: tidy up workflows and implement a consistent style Sep 15, 2025
@gauthier-th
Copy link
Member

CC: @M0NsTeRRR

@sudo-kraken
Copy link
Contributor Author

@M0NsTeRRR I just pushed the commit, please let me know when you have looked over it.

Copy link
Member

@M0NsTeRRR M0NsTeRRR left a comment

Choose a reason for hiding this comment

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

Have you run zizmor also ?

@sudo-kraken
Copy link
Contributor Author

@M0NsTeRRR this is where we will see some issues now as we made this two separate PR's I added the pnpm logic into these workflows but these will now fail the tests as the package.json changes are not present in this PR.

@sudo-kraken
Copy link
Contributor Author

Closed PR-1904 and merged into PR-1905.

Copy link
Collaborator

@fallenbagel fallenbagel left a comment

Choose a reason for hiding this comment

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

@sudo-kraken lockfile needs to be updated

@github-actions github-actions bot added the merge conflict Cannot merge due to merge conflicts label Sep 23, 2025
@github-actions
Copy link

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

@sudo-kraken
Copy link
Contributor Author

@sudo-kraken lockfile needs to be updated

dfbfd63

@gauthier-th
Copy link
Member

@sudo-kraken there is still a merge conflict in the lock file

@github-actions github-actions bot removed the merge conflict Cannot merge due to merge conflicts label Sep 23, 2025
@sudo-kraken
Copy link
Contributor Author

The conflict is resolved and tests passed.

@sudo-kraken
Copy link
Contributor Author

I have created a branch with the updated workflows in my fork then pr'd them into develop to test along with the updated Dockerfile and package.json etc, with the only difference being that the publishing sections are removed leaving only the builds in, the preview run has been successful and the other is running see below:

Preview: https://github.com/sudo-kraken/jellyseerr/actions/runs/17947025757
CI: https://github.com/sudo-kraken/jellyseerr/actions/runs/17947180858

@sudo-kraken
Copy link
Contributor Author

Last hotfix hopefully, added to update the latest tag in release.yml as it was still using the old env var for the owner.

gauthier-th
gauthier-th previously approved these changes Sep 23, 2025
Copy link
Member

@gauthier-th gauthier-th left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Ludovic Ortega <[email protected]>
@M0NsTeRRR
Copy link
Member

Fixed :

  • Some typos
  • Enabled CodeQL on github actions
  • Removed hardcoded repository reference
  • Removed unused snap workflow
  • Refactored ci and support workflow to avoid useless third party github action
  • Force singleQuote configuration in vscode settings (I don't have prettier installed)

Otherwise LGTM, @sudo-kraken any comment on my last commit ?

Signed-off-by: Ludovic Ortega <[email protected]>
@sudo-kraken
Copy link
Contributor Author

Fixed :

  • Some typos

  • Enabled CodeQL on github actions

  • Removed hardcoded repository reference

  • Removed unused snap workflow

  • Refactored ci and support workflow to avoid useless third party github action

  • Force singleQuote configuration in vscode settings (I don't have prettier installed)

Otherwise LGTM, @sudo-kraken any comment on my last commit ?

Review complete, all good from me, good work. LGTM 👍

@github-advanced-security
Copy link
Contributor

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

uses: docker/build-push-action@v5

- name: Warm cache (no push) — ${{ matrix.platform }}
uses: docker/build-push-action@v6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr CI' step
Uses Step
uses 'docker/build-push-action' with ref 'v6', not a pinned commit hash
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> "$GITHUB_OUTPUT"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr CI' step
Uses Step
uses 'docker/setup-buildx-action' with ref 'v3', not a pinned commit hash
docker manifest push ghcr.io/${{ env.OWNER_LC }}/jellyseerr:develop
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr CI' step
Uses Step: meta
uses 'docker/metadata-action' with ref 'v5', not a pinned commit hash
org.opencontainers.image.created=${{ steps.ts.outputs.TIMESTAMP }}
- name: Build & Push (multi-arch, single tag)
uses: docker/build-push-action@v6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr CI' step
Uses Step
uses 'docker/build-push-action' with ref 'v6', not a pinned commit hash

- name: Set up Helm
uses: azure/[email protected]
uses: azure/setup-helm@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Lint and Test Charts' step
Uses Step
uses 'azure/setup-helm' with ref 'v4', not a pinned commit hash
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> "$GITHUB_OUTPUT"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr Release' step
Uses Step
uses 'docker/setup-buildx-action' with ref 'v3', not a pinned commit hash
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr Release' step
Uses Step
uses 'docker/login-action' with ref 'v3', not a pinned commit hash
password: ${{ secrets.DOCKER_TOKEN }}

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr Release' step
Uses Step
uses 'docker/login-action' with ref 'v3', not a pinned commit hash

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr Release' step
Uses Step: meta
uses 'docker/metadata-action' with ref 'v5', not a pinned commit hash
org.opencontainers.image.created=${{ steps.ts.outputs.TIMESTAMP }}
- name: Build & Push (multi-arch, single tag)
uses: docker/build-push-action@v6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Seerr Release' step
Uses Step
uses 'docker/build-push-action' with ref 'v6', not a pinned commit hash
fallenbagel
fallenbagel previously approved these changes Sep 24, 2025
@fallenbagel fallenbagel merged commit f46a763 into seerr-team:develop Sep 25, 2025
10 checks passed
@fallenbagel
Copy link
Collaborator

@all-contributors please add @sudo-kraken for infra

@allcontributors
Copy link
Contributor

@fallenbagel

I've put up a pull request to add @sudo-kraken! 🎉

@sudo-kraken sudo-kraken deleted the feat-update-workflows branch September 25, 2025 07:17
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.

5 participants