chore: remove GitLab sync workflow from GitHub Actions #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: dbLinter | |
| on: | |
| push: | |
| branches: | |
| - development | |
| pull_request: | |
| branches: | |
| - development | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| lint: | |
| name: Run dbLinter | |
| runs-on: ubuntu-latest | |
| environment: dblinter | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "21" | |
| distribution: "oracle" | |
| - name: Download dbLinter CLI | |
| run: | | |
| curl -L -o dblinter.zip https://github.com/Grisselbav/dbLinter/releases/download/v1.3.0/dblinter-1.3.0.zip | |
| unzip dblinter.zip | |
| mv dblinter-* dblinter | |
| chmod +x dblinter/dblinter | |
| - name: Create .dblinter directory | |
| run: mkdir -p .dblinter | |
| - name: Create dblinter properties file | |
| run: | | |
| cat > .dblinter/check.properties << EOF | |
| workspace=${{ github.workspace }} | |
| repoUrl=https://api.dblinter.app/ | |
| tenantName=UNITEDCODES | |
| userName=${{ secrets.DBLINTER_USERNAME }} | |
| accessToken=${{ secrets.DBLINTER_ACCESS_TOKEN }} | |
| configName=Default | |
| parallel=2 | |
| logLevel=Trace | |
| logFile=${{ github.workspace }}/.dblinter/check.log | |
| logFormat=ext3 | |
| outputFormats=github,sarif | |
| outputName=${{ github.workspace }}/.dblinter/check | |
| EOF | |
| - name: Run dbLinter | |
| run: | | |
| java -jar dblinter/dblinter-cli.jar --options=.dblinter/check.properties check | |
| - name: Output dbLinter annotations | |
| run: cat .dblinter/check.github.txt | |
| - name: Upload SARIF | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: .dblinter/check.sarif.sarif |