Skip to content

Custom domains

Custom domains #398

Workflow file for this run

name: Gosec
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout PR branch
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up sparse checkout
run: |
git sparse-checkout init --cone
git sparse-checkout set api
- name: Pull changes from PR branch
env:
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: git pull origin "$HEAD_REF"
- name: Move directory
run: |
mv api/* .
- name: Run Gosec Security Scanner
uses: securego/gosec@bb17e422fc34bf4c0a2e5cab9d07dc45a68c040c # v2.24.7
with:
args: '-exclude=G101,G402,G505,G117,G122 -exclude-dir=gomail.v2 ./...'