From 3da351871f97298081e359e2ccca10a8d6e840d3 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 14 Apr 2022 02:21:38 +0300 Subject: [PATCH] Improve workflows --- .github/workflows/ci.yml | 5 +++++ .github/workflows/codeql.yml | 9 +++++++-- badge.go | 2 +- badge_test.go | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cbd78d..eee3bac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [master] +permissions: + actions: read + contents: read + statuses: write + jobs: Go: name: Go diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3444662..0fa9f18 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -6,7 +6,12 @@ on: pull_request: branches: [master] schedule: - - cron: '0 17 * * 1,3,5' + - cron: '0 3 * * */2' + +permissions: + security-events: write + actions: read + contents: read jobs: analyse: @@ -15,7 +20,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 diff --git a/badge.go b/badge.go index 4f5c0cf..d26d6a6 100644 --- a/badge.go +++ b/badge.go @@ -3,7 +3,7 @@ package badge // ////////////////////////////////////////////////////////////////////////////////// // // // -// Copyright (c) 2021 ESSENTIAL KAOS // +// Copyright (c) 2022 ESSENTIAL KAOS // // Apache License, Version 2.0 // // // // ////////////////////////////////////////////////////////////////////////////////// // diff --git a/badge_test.go b/badge_test.go index d510b04..0ea1945 100644 --- a/badge_test.go +++ b/badge_test.go @@ -2,7 +2,7 @@ package badge // ////////////////////////////////////////////////////////////////////////////////// // // // -// Copyright (c) 2021 ESSENTIAL KAOS // +// Copyright (c) 2022 ESSENTIAL KAOS // // Apache License, Version 2.0 // // // // ////////////////////////////////////////////////////////////////////////////////// //