Skip to content

Commit

Permalink
Update CI workflows (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemare authored Jan 21, 2025
1 parent 53ff1c1 commit 7c75b88
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 68 deletions.
43 changes: 38 additions & 5 deletions .github/workflows/code-scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code Scan
name: Analysis

on:
push:
Expand All @@ -8,8 +8,8 @@ on:
branches:
- main
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: '4 1 * * *'
# Every 3 days at 7 a.m.
- cron: '0 7 */3 * *'

permissions: {}

Expand All @@ -22,7 +22,16 @@ jobs:
config-path: ./.github/.golangci.yml
scope: ./...

Analyze:
CodeQL:
permissions:
actions: read
contents: read
security-events: write
uses: bytemare/workflows/.github/workflows/codeql.yml@d4e3826d684cd074ad761f762be084d1af5706a1
with:
language: go

CodeScans:
permissions:
contents: read
uses: bytemare/workflows/.github/workflows/scan-go.yml@d4e3826d684cd074ad761f762be084d1af5706a1
Expand All @@ -33,4 +42,28 @@ jobs:
github: ${{ secrets.GITHUB_TOKEN }}
sonar: ${{ secrets.SONAR_TOKEN }}
codecov: ${{ secrets.CODECOV_TOKEN }}
semgrep: ${{ secrets.SEMGREP_APP_TOKEN }}
semgrep: ${{ secrets.SEMGREP_APP_TOKEN }}

Scorecard:
permissions:
# Needed if using Code scanning alerts
security-events: write
# Needed for GitHub OIDC token if publish_results is true
id-token: write
# Needed for nested workflow
actions: read
attestations: read
checks: read
contents: read
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read

uses: bytemare/workflows/.github/workflows/scorecard.yml@d4e3826d684cd074ad761f762be084d1af5706a1
secrets:
token: ${{ secrets.SCORECARD_TOKEN }}
23 changes: 0 additions & 23 deletions .github/workflows/codeql.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/scorecards.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ '1.22', '1.21' ]
go: [ '1.23', '1.22', '1.21' ]
uses: bytemare/workflows/.github/workflows/test-go.yml@d4e3826d684cd074ad761f762be084d1af5706a1
with:
command: cd .github && make test
Expand Down

0 comments on commit 7c75b88

Please sign in to comment.