Skip to content

Merge pull request #141 from joshuar/release-please--branches--main #429

Merge pull request #141 from joshuar/release-please--branches--main

Merge pull request #141 from joshuar/release-please--branches--main #429

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '11 0 * * 5'
workflow_dispatch:
permissions:
contents: read
env:
MAGEARGS: -v -d build/magefiles -w .
jobs:
analyze:
permissions:
packages: read
actions: read
security-events: write
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: manual
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
ghcr.io:443
github.com:443
objects.githubusercontent.com:443
pkg-containers.githubusercontent.com:443
proxy.golang.org:443
raw.githubusercontent.com:443
storage.googleapis.com:443
sum.golang.org:443
uploads.github.com:443
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Setup Go
id: setup_go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version-file: 'go.mod'
- name: Install Mage
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3
with:
install-only: true
- name: Copy over example app
run: |
rm -fr apps && cp -a examples apps
- name: Run generators
run: mage ${MAGEARGS} preps:generate
- name: Initialize CodeQL
uses: github/codeql-action/init@8f1a6fed33af5212fab8a999d004627ae8901d1b # v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
packs: githubsecuritylab/codeql-${{ matrix.language }}-queries
- name: Build agent
run: |
go build -v
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8f1a6fed33af5212fab8a999d004627ae8901d1b # v3
with:
category: "/language:${{matrix.language}}"