Skip to content

chore(deps): bump org.junit.platform:junit-platform-launcher #69

chore(deps): bump org.junit.platform:junit-platform-launcher

chore(deps): bump org.junit.platform:junit-platform-launcher #69

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 35, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VIRUSTOTAL_API_KEY != ''
on:
push:
branches: [ main, initial-setup ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: gradle build --no-configuration-cache
- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: LazyDialect-plugin
path: build/libs/LazyDialect-*.jar
- name: VirusTotal Scan
if: ${{ secrets.VIRUSTOTAL_API_KEY != '' }}
run: |
curl -s --request POST \
--url https://www.virustotal.com/api/v3/files \
--header "x-apikey: ${{ secrets.VIRUSTOTAL_API_KEY }}" \
--form "file=@$(ls build/libs/LazyDialect-*.jar)" \
--output vt_response.json
echo "VirusTotal scan submitted. Analysis ID: $(jq -r '.data.id' vt_response.json)"
sleep 15
curl -s --request GET \
--url "https://www.virustotal.com/api/v3/analyses/$(jq -r '.data.id' vt_response.json)" \
--header "x-apikey: ${{ secrets.VIRUSTOTAL_API_KEY }}" \
| jq '.data.attributes.stats'
continue-on-error: true