Skip to content

Commit 453b9e6

Browse files
reidspencerclaude
andcommitted
Upgrade sbt-ossuminc to 1.1.0 and fix CI credentials
Add GitHub Packages resolver to plugins.sbt so sbt can find the plugin. Configure sbt credentials in all workflows using GITHUB_TOKEN for authentication with GitHub Packages. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1235faf commit 453b9e6

4 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ jobs:
3333
- name: Coursier Caching
3434
uses: coursier/cache-action@v6
3535

36+
- name: Configure sbt GitHub Packages credentials
37+
run: |
38+
mkdir -p ~/.sbt/1.0
39+
cat > ~/.sbt/1.0/github.sbt << 'EOF'
40+
credentials += Credentials(
41+
"GitHub Package Registry",
42+
"maven.pkg.github.com",
43+
"x-access-token",
44+
sys.env.getOrElse("GITHUB_TOKEN", "")
45+
)
46+
EOF
47+
3648
- name: Coverage For JVM projects only
3749
run: |
3850
sbt clean coverage \

.github/workflows/hugo.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ jobs:
5656
- name: Coursier Caching
5757
uses: coursier/cache-action@v6
5858

59+
- name: Configure sbt GitHub Packages credentials
60+
run: |
61+
mkdir -p ~/.sbt/1.0
62+
cat > ~/.sbt/1.0/github.sbt << 'EOF'
63+
credentials += Credentials(
64+
"GitHub Package Registry",
65+
"maven.pkg.github.com",
66+
"x-access-token",
67+
sys.env.getOrElse("GITHUB_TOKEN", "")
68+
)
69+
EOF
70+
5971
- name: Cache ScalaDoc Output
6072
uses: actions/cache@v4
6173
with:

.github/workflows/scala.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ jobs:
4141
- name: Coursier Caching
4242
uses: coursier/cache-action@v6
4343

44+
- name: Configure sbt GitHub Packages credentials
45+
run: |
46+
mkdir -p ~/.sbt/1.0
47+
cat > ~/.sbt/1.0/github.sbt << 'EOF'
48+
credentials += Credentials(
49+
"GitHub Package Registry",
50+
"maven.pkg.github.com",
51+
"x-access-token",
52+
sys.env.getOrElse("GITHUB_TOKEN", "")
53+
)
54+
EOF
55+
4456
- name: Cache SBT Build Outputs
4557
uses: actions/cache@v4
4658
with:

project/plugins.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
addSbtPlugin("com.ossuminc" % "sbt-ossuminc" % "1.0.0")
1+
// GitHub Packages resolver for sbt-ossuminc
2+
resolvers += "GitHub Packages" at "https://maven.pkg.github.com/ossuminc/sbt-ossuminc"
3+
4+
addSbtPlugin("com.ossuminc" % "sbt-ossuminc" % "1.1.0")
25

36
// This enables sbt-bloop to create bloop config files for Metals editors
47
// Uncomment locally if you use metals, otherwise don't slow down other

0 commit comments

Comments
 (0)