Skip to content

Commit

Permalink
WIP: Adds TICS
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiubelu committed Jan 13, 2025
1 parent 2356ea2 commit ea4d334
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cron-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Security and quality nightly scan

on:
schedule:
- cron: '0 10 * * *'
pull_request:

jobs:
TICS:
permissions:
contents: read
runs-on: ubuntu-latest

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit

- name: Checking out repo
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22"

- name: TICS scan
run: |
export TICSAUTHTOKEN=${{ secrets.TICSAUTHTOKEN }}
set -x
# Install the TICS and staticcheck
go install honnef.co/go/tools/cmd/[email protected]
. <(curl --silent --show-error 'https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/')
TICSQServer -project ${{ github.event.repository.name }} -tmpdir /tmp/tics -branchdir "$GITHUB_WORKSPACE"

0 comments on commit ea4d334

Please sign in to comment.