mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-17 11:57:12 +03:00
4a88dac00f
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](48af2dc4a9...30f413bfed
)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
330 lines
11 KiB
YAML
330 lines
11 KiB
YAML
# Copyright 2021 Security 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.
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
name: docker-build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "*.md"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "*.md"
|
|
|
|
env:
|
|
GO_VERSION: 1.17.7
|
|
|
|
jobs:
|
|
scorecard:
|
|
name: scorecard-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: docker build
|
|
run: make scorecard-docker
|
|
cron-controller:
|
|
name: cron-controller-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: docker build
|
|
run: make cron-controller-docker
|
|
cron-worker:
|
|
name: cron-worker-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: docker build
|
|
run: make cron-worker-docker
|
|
cron-cii-worker:
|
|
name: cron-cii--worker-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: docker build
|
|
run: make cron-cii-worker-docker
|
|
cron-bq-transfer:
|
|
name: cron-bq-transfer-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: docker build
|
|
run: make cron-bq-transfer-docker
|
|
cron-webhook:
|
|
name: cron-webhook-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: docker build
|
|
run: make cron-webhook-docker
|
|
cron-github-server:
|
|
name: cron-github-server-docker
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: 3.17.3
|
|
- name: Cache builds
|
|
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
|
|
uses: actions/cache@30f413bfed0a2bc738fdfd409e5a9e96b24545fd #v2.1.7
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
%LocalAppData%\go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Clone the code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2.2.0
|
|
with:
|
|
go-version: '^1.17'
|
|
- name: docker build
|
|
run: make cron-github-server-docker
|