Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ on:
branches: ['**', '!update/**', '!pr/**']
tags: [v*]

permissions:
actions: none
checks: none
contents: read
deployments: none
id-token: none
issues: none
packages: read
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -101,6 +115,7 @@ jobs:
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
path: targets.tar
retention-days: 1

publish:
name: Publish Artifacts
Expand Down Expand Up @@ -225,6 +240,19 @@ jobs:
os: [ubuntu-22.04]
java: [temurin@11]
runs-on: ${{ matrix.os }}
permissions:
actions: none
checks: none
contents: write
deployments: none
id-token: none
issues: none
packages: read
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v6
Expand Down Expand Up @@ -296,6 +324,19 @@ jobs:
os: [ubuntu-22.04]
java: [temurin@11]
runs-on: ${{ matrix.os }}
permissions:
actions: none
checks: none
contents: write
deployments: none
id-token: none
issues: none
packages: read
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v6
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/clean.yml

This file was deleted.

26 changes: 25 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import scala.concurrent.duration.DurationInt
import scala.sys.process._

import nl.zolotko.sbt.jfr.{JfrRecorderOptions, JfrRecording}
import org.typelevel.sbt.gha.{Permissions, PermissionValue}
import spray.revolver.Actions._

val catsVersion = "2.13.0"
Expand All @@ -21,6 +22,7 @@ val munitVersion = "1.3.3"
val munitCatsEffectVersion = "2.2.0"
val munitScalaCheckVersion = "1.3.0"
val oracleDriverVersion = "23.26.2.0.0"
val postgresVersion = "42.7.11"
val skunkVersion = "1.0.0"
val shapeless2Version = "2.3.13"
val shapeless3Version = "3.6.0"
Expand Down Expand Up @@ -62,6 +64,24 @@ ThisBuild / githubWorkflowBuild ~= { steps =>
}
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"))
ThisBuild / tlBspCrossProjectPlatforms := Set(JVMPlatform)
ThisBuild / githubWorkflowPermissions := Some(Permissions.Specify.defaultRestrictive)
ThisBuild / githubWorkflowIncludeClean := false

ThisBuild / githubWorkflowGeneratedCI ~= {
_.map { job =>
if (Set("dependency-submission", "site")(job.id))
job.withPermissions(
Some(Permissions.Specify.defaultRestrictive.withContents(PermissionValue.Write)))
else if (job.id == "build")
job.withSteps(job.steps.map {
case use: WorkflowStep.Use
if use.ref == UseRef.Public("actions", "upload-artifact", "v5") =>
use.concatParams(List("retention-days" -> "1"))
case step => step
})
else job
}
}

ThisBuild / githubWorkflowAddedJobs +=
WorkflowJob(
Expand Down Expand Up @@ -278,7 +298,9 @@ lazy val doobiepg = project
Test / testOptions += Tests
.Setup(_ => runDocker("docker compose up -d --wait --quiet-pull postgres")),
libraryDependencies ++= Seq(
"org.typelevel" %% "doobie-postgres-circe" % doobieVersion
"org.typelevel" %% "doobie-postgres-circe" % doobieVersion,
// Pin transitive Postgres JDBC driver to >= 42.7.11 (CVE-2026-42198 / GHSA-98qh-xjc8-98pq)
"org.postgresql" % "postgresql" % postgresVersion
)
)

Expand Down Expand Up @@ -374,6 +396,8 @@ lazy val demo = project
"ch.qos.logback" % "logback-classic" % logbackVersion,
"org.typelevel" %% "doobie-core" % doobieVersion,
"org.typelevel" %% "doobie-postgres" % doobieVersion,
// Pin transitive Postgres JDBC driver to >= 42.7.11 (CVE-2026-42198 / GHSA-98qh-xjc8-98pq)
"org.postgresql" % "postgresql" % postgresVersion,
"org.typelevel" %% "doobie-hikari" % doobieVersion,
"org.http4s" %% "http4s-ember-server" % http4sVersion,
"org.http4s" %% "http4s-ember-client" % http4sVersion,
Expand Down
Loading