Skip to content

Initial commit

Initial commit #40

Workflow file for this run

name: CI Workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '24 21 * * 2'
permissions:
contents: read
jobs:
semgrep:
permissions:
contents: read
security-events: write
actions: read
name: Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: returntocorp/semgrep-action@fcd5ab7459e8d91cb1777481980d1b18b4fc6735
with:
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
generateSarif: "1"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: semgrep.sarif
if: always()
test:
runs-on: ubuntu-latest
name: Run Tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test ./... -v
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: ./test-results