Skip to content
Open
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
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ updates:
github-actions:
patterns:
- "*"
cooldown:
default-days: 7

- package-ecosystem: maven
directory: /
Expand All @@ -17,6 +19,8 @@ updates:
maven:
patterns:
- "*"
cooldown:
default-days: 7

- package-ecosystem: gradle
directory: /intellij-plugin
Expand All @@ -26,6 +30,8 @@ updates:
gradle:
patterns:
- "*"
cooldown:
default-days: 7

- package-ecosystem: npm
directory: /vscode-extension
Expand All @@ -35,3 +41,5 @@ updates:
npm:
patterns:
- "*"
cooldown:
default-days: 7
34 changes: 33 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up JDK 17
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
Expand All @@ -39,6 +41,8 @@ jobs:
needs: server
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up JDK 17
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
Expand All @@ -55,7 +59,9 @@ jobs:
with:
distribution: temurin
java-version: '17'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6

- name: Build plugin
working-directory: intellij-plugin
Expand Down Expand Up @@ -87,6 +93,8 @@ jobs:
target: darwin-arm64
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up JDK 17
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
Expand Down Expand Up @@ -114,3 +122,27 @@ jobs:
with:
name: vscode-extension-${{ matrix.target }}
path: vscode-extension/*.vsix

lint-github-actions:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Lint GitHub actions with Zizmor
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
with:
advanced-security: false

merge-gate:
name: Merge Gate
runs-on: ubuntu-slim
needs:
- server
- plugin
- vscode-extension
- lint-github-actions
steps:
- run: echo "Success"
34 changes: 21 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Release
on:
workflow_dispatch:

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
Expand All @@ -14,6 +11,8 @@ jobs:
vscode-packages:
name: Build VS Code extension (${{ matrix.target }})
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: true
matrix:
Expand All @@ -31,13 +30,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Fail if not running on main branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('This workflow must run on main. Current ref: ${{ github.ref }}')
run: |
echo This workflow must run on main. Current ref: $GITHUB_REF
exit 1
env:
GITHUB_REF: ${{ github.ref }}

- name: Set up JDK 17 for Maven
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
Expand Down Expand Up @@ -70,6 +72,8 @@ jobs:
release:
runs-on: ubuntu-latest
needs: vscode-packages
permissions:
contents: write
defaults:
run:
shell: bash
Expand All @@ -79,13 +83,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Fail if not running on main branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('This workflow must run on main. Current ref: ${{ github.ref }}')
run: |
echo This workflow must run on main. Current ref: $GITHUB_REF
exit 1
env:
GITHUB_REF: ${{ github.ref }}

- name: Set up JDK 17 for Maven
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
Expand All @@ -102,7 +109,9 @@ jobs:
with:
distribution: temurin
java-version: '17'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6

- name: Build plugin distribution
working-directory: intellij-plugin
Expand Down Expand Up @@ -135,4 +144,3 @@ jobs:
npx --yes ovsx publish "$package"
done


7 changes: 7 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
unpinned-uses:
config:
policies:
"actions/*": ref-pin
"gradle/actions/setup-gradle": ref-pin
"*": hash-pin
34 changes: 33 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<!-- Dependency versions -->
<lsp4j.version>1.0.0</lsp4j.version>
<openfasttrace.version>4.10.0</openfasttrace.version>
<openfasttrace.version>4.11.0</openfasttrace.version>
<tinylog.version>2.8.1</tinylog.version>
<junit.version>6.1.3</junit.version>
<assertj.version>3.27.7</assertj.version>
Expand Down Expand Up @@ -141,10 +141,25 @@
<version>${maven-compiler-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.11.0</version>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>-javaagent:${org.mockito:mockito-core:jar} ${argLine}</argLine>
</configuration>
Comment on lines +160 to +162

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fix warning for mockito agent with newer JDKs

</plugin>

<!-- Fat JAR for standalone server execution -->
Expand Down Expand Up @@ -203,6 +218,23 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.itsallcode</groupId>
<artifactId>openfasttrace-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>trace-requirements</id>
<goals>
<goal>trace</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Tracing currently fails -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading