🌱 Bump github/codeql-action from 3.26.3 to 3.26.5 in the github-actions group #1529
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2021 OpenSSF Scorecard Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: build | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
PROTOC_VERSION: 3.17.3 | |
GO_VERSION: 1.21 | |
jobs: | |
build-scorecard-webapp: | |
name: build-scorecard-webapp | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Clone the code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Run linter | |
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 | |
with: | |
args: --config=.golangci.yml | |
- name: Check license headers | |
run: | | |
go env -w GOFLAGS=-mod=mod | |
go install github.com/google/addlicense@2fe3ee94479d08be985a84861de4e6b06a1c7208 | |
addlicense -ignore "app/server/testdata/**" -ignore "app/generated/**" -ignore "scorecards-site/**" -l apache -c 'OpenSSF Scorecard Authors' -v * | |
git diff --exit-code | |
- name: Run build | |
run: | | |
go env -w GOFLAGS=-mod=mod | |
make scorecard-webapp | |
- name: Tests | |
env: | |
GITHUB_AUTH_TOKEN: ${{ github.token }} # needed for the e2e tests | |
run: | | |
cd app/server && go test |