Hash pin workflows and config dependabot (#5412)

* Step Security: hash pin and dependabot

Signed-off-by: Joyce Brum <joycebrum@google.com>

* add license to dependabot.yml

Signed-off-by: Joyce <joycebrum@google.com>

---------

Signed-off-by: Joyce Brum <joycebrum@google.com>
Signed-off-by: Joyce <joycebrum@google.com>
This commit is contained in:
Joyce 2023-10-05 14:18:28 -03:00 committed by GitHub
parent df2f2a0313
commit ce995b319e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 5 deletions

25
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,25 @@
# Copyright 2023 Google LLC
#
# 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.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
groups:
github-actions:
patterns:
- "*"
open-pull-requests-limit: 3

View File

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
# Checkout the depot tools they are needed by roll_deps.sh # Checkout the depot tools they are needed by roll_deps.sh
- name: Checkout depot tools - name: Checkout depot tools

View File

@ -18,13 +18,13 @@ jobs:
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with: with:
fetch-depth: '0' fetch-depth: '0'
- name: Download dependencies - name: Download dependencies
run: python3 utils/git-sync-deps run: python3 utils/git-sync-deps
- name: Mount Bazel cache - name: Mount Bazel cache
uses: actions/cache@v3 uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with: with:
path: ~/.bazel/cache path: ~/.bazel/cache
key: bazel-cache-${{ runner.os }} key: bazel-cache-${{ runner.os }}

View File

@ -12,7 +12,7 @@ jobs:
prepare-release-job: prepare-release-job:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Prepare CHANGELOG for version - name: Prepare CHANGELOG for version
run: | run: |
python utils/generate_changelog.py CHANGES "${{ github.ref_name }}" VERSION_CHANGELOG python utils/generate_changelog.py CHANGES "${{ github.ref_name }}" VERSION_CHANGELOG

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with: with:
fetch-depth: '0' fetch-depth: '0'
- name: Build web - name: Build web