Skip to content

[Backend] Replace .ContainsKey with .TryGetValue/.TryAdd #3701

[Backend] Replace .ContainsKey with .TryGetValue/.TryAdd

[Backend] Replace .ContainsKey with .TryGetValue/.TryAdd #3701

Workflow file for this run

name: database
on:
pull_request:
branches: [master]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
docker_build:
if: ${{ github.event.type }} == "PullRequest"
runs-on: ubuntu-latest
steps:
# See https://docs.stepsecurity.io/harden-runner/getting-started/ for instructions on
# configuring harden-runner and identifying allowed endpoints.
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
auth.docker.io:443
github.com:443
production.cloudflare.docker.com:443
registry-1.docker.io:443
# For subfolders, currently a full checkout is required.
# See: https://github.com/marketplace/actions/build-and-push-docker-images#path-context
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- name: Build database image
run: |
deploy/scripts/build.py --components database
shell: bash
- name: Image digest
run: |
docker image inspect combine_database:latest -f '{{json .Id}}'
shell: bash