Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: synced file(s) with cds-snc/site-reliability-engineering #256

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

sre-read-write[bot]
Copy link
Contributor

@sre-read-write sre-read-write bot commented Sep 12, 2023

synced local file(s) with cds-snc/site-reliability-engineering.

Internal SRE File Sync

This PR syncs files across repos that are owned by internal SRE so we can ensure we have a standardized set of workflows, actions, and other files across the various repos that SRE uses.

Files included in Sync

  • .github/workflows/sync-repo-labels.yml: Syncs Internal SRE's Labels across the org
  • .github/workflows/ossf-scorecard.yml: Measures the security of a repository and sends it to Azure Sentinel.
  • .github/workflows/export_github_data.yml: Collects metadata about a repository and sends it to Azure Sentinel.
Changed files
  • synced local .github/workflows/ossf-scorecard.yml with remote tools/sre_file_sync/ossf-scorecard.yml
  • synced local .github/workflows/export_github_data.yml with remote tools/sre_file_sync/export_github_data.yml

This PR was created automatically by the repo-file-sync-action workflow run #6223354952

@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 546.39MiB
Inefficient Bytes 40.45MiB
Efficiency Percentage 93.69%
Total Layers 17
Show full output
{
  "layer": [
    {
      "index": 0,
      "id": "10ed3d067d7165c0321d966f8e3d3316f8bc7f4fc65ba740db8149f34c009f83",
      "digestId": "sha256:a2d7501dfb3541f3d736125cdfd748618194f60cbb5c63f4de67a92530899628",
      "sizeBytes": 74756781,
      "command": "#(nop) ADD file:3a8cd4de7f163d93718670f4db1de49045f5e04af3a8aa27d81c0f14647db707 in / "
    },
    {
      "index": 1,
      "id": "df86f864288f2e00643e414eef4f8498eb91d6468518c96be544e157355d0372",
      "digestId": "sha256:b9044eea833a0cf80a01e107632d771f92fe9a559a2e7c642c79b4d870bd5c44",
      "sizeBytes": 9200816,
      "command": "RUN /bin/sh -c set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tca-certificates \t\tnetbase \t\ttzdata \t; \trm -rf /var/lib/apt/lists/* # buildkit"
    },
    {
      "index": 2,
      "id": "2d7ae3fd0e89254d96cf23948b3303593011fdb2697d17df4462909e74843075",
      "digestId": "sha256:3d0d7bce231bb050f27a985050a842e77141ae546876ef082252cd2397fc47f3",
      "sizeBytes": 34204880,
      "command": "RUN /bin/sh -c set -eux; \t\tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tdpkg-dev \t\tgcc \t\tgnupg \t\tlibbluetooth-dev \t\tlibbz2-dev \t\tlibc6-dev \t\tlibdb-dev \t\tlibexpat1-dev \t\tlibffi-dev \t\tlibgdbm-dev \t\tliblzma-dev \t\tlibncursesw5-dev \t\tlibreadline-dev \t\tlibsqlite3-dev \t\tlibssl-dev \t\tmake \t\ttk-dev \t\tuuid-dev \t\twget \t\txz-utils \t\tzlib1g-dev \t; \t\twget -O python.tar.xz \"https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz\"; \twget -O python.tar.xz.asc \"https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc\"; \tGNUPGHOME=\"$(mktemp -d)\"; export GNUPGHOME; \tgpg --batch --keyserver hkps://keys.openpgp.org --recv-keys \"$GPG_KEY\"; \tgpg --batch --verify python.tar.xz.asc python.tar.xz; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" python.tar.xz.asc; \tmkdir -p /usr/src/python; \ttar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; \trm python.tar.xz; \t\tcd /usr/src/python; \tgnuArch=\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\"; \t./configure \t\t--build=\"$gnuArch\" \t\t--enable-loadable-sqlite-extensions \t\t--enable-optimizations \t\t--enable-option-checking=fatal \t\t--enable-shared \t\t--with-lto \t\t--with-system-expat \t\t--without-ensurepip \t; \tnproc=\"$(nproc)\"; \tEXTRA_CFLAGS=\"$(dpkg-buildflags --get CFLAGS)\"; \tLDFLAGS=\"$(dpkg-buildflags --get LDFLAGS)\"; \tLDFLAGS=\"${LDFLAGS:--Wl},--strip-all\"; \tmake -j \"$nproc\" \t\t\"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}\" \t\t\"LDFLAGS=${LDFLAGS:-}\" \t\t\"PROFILE_TASK=${PROFILE_TASK:-}\" \t; \trm python; \tmake -j \"$nproc\" \t\t\"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}\" \t\t\"LDFLAGS=${LDFLAGS:--Wl},-rpath='\\$\\$ORIGIN/../lib'\" \t\t\"PROFILE_TASK=${PROFILE_TASK:-}\" \t\tpython \t; \tmake install; \t\tcd /; \trm -rf /usr/src/python; \t\tfind /usr/local -depth \t\t\\( \t\t\t\\( -type d -a \\( -name test -o -name tests -o -name idle_test \\) \\) \t\t\t-o \\( -type f -a \\( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \\) \\) \t\t\\) -exec rm -rf '{}' + \t; \t\tldconfig; \t\tapt-mark auto '.*' \u003e /dev/null; \tapt-mark manual $savedAptMark; \tfind /usr/local -type f -executable -not \\( -name '*tkinter*' \\) -exec ldd '{}' ';' \t\t| awk '/=\u003e/ { so = $(NF-1); if (index(so, \"/usr/local/\") == 1) { next }; gsub(\"^/(usr/)?\", \"\", so); printf \"*%s\\n\", so }' \t\t| sort -u \t\t| xargs -r dpkg-query --search \t\t| cut -d: -f1 \t\t| sort -u \t\t| xargs -r apt-mark manual \t; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \trm -rf /var/lib/apt/lists/*; \t\tpython3 --version # buildkit"
    },
    {
      "index": 3,
      "id": "162b5f5d0f029ac95b70910b3c43fc32ed5161b1f359b74807786bc3432340c6",
      "digestId": "sha256:35cd1b4f408e04f2905c3a9461c5f3298dd99181061bf87b1b94f8adbab8981e",
      "sizeBytes": 0,
      "command": "RUN /bin/sh -c set -eux; \tfor src in idle3 pydoc3 python3 python3-config; do \t\tdst=\"$(echo \"$src\" | tr -d 3)\"; \t\t[ -s \"/usr/local/bin/$src\" ]; \t\t[ ! -e \"/usr/local/bin/$dst\" ]; \t\tln -svT \"$src\" \"/usr/local/bin/$dst\"; \tdone # buildkit"
    },
    {
      "index": 4,
      "id": "acc99d0867c7515956dc4da6f14e339d837e65fe481e266161c5ce7548f7f4e5",
      "digestId": "sha256:ee01afca5cbfc1861960177ef5a70a242953a3c9e5e12ee4bca6417459b057da",
      "sizeBytes": 12307567,
      "command": "RUN /bin/sh -c set -eux; \t\tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends wget; \t\twget -O get-pip.py \"$PYTHON_GET_PIP_URL\"; \techo \"$PYTHON_GET_PIP_SHA256 *get-pip.py\" | sha256sum -c -; \t\tapt-mark auto '.*' \u003e /dev/null; \t[ -z \"$savedAptMark\" ] || apt-mark manual $savedAptMark \u003e /dev/null; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \trm -rf /var/lib/apt/lists/*; \t\texport PYTHONDONTWRITEBYTECODE=1; \t\tpython get-pip.py \t\t--disable-pip-version-check \t\t--no-cache-dir \t\t--no-compile \t\t\"pip==$PYTHON_PIP_VERSION\" \t\t\"setuptools==$PYTHON_SETUPTOOLS_VERSION\" \t; \trm -f get-pip.py; \t\tpip --version # buildkit"
    },
    {
      "index": 5,
      "id": "e165b93db9f636205ddea961fb537f146d4a86e1f540bd79b2fddac39c5b80aa",
      "digestId": "sha256:f2f6cb94d0eedb578894653e4b2522dd08c914799113406bbc1c159d44e58cd7",
      "sizeBytes": 1355085,
      "command": "RUN /bin/sh -c apt-get update   \u0026\u0026 apt-get install -y wget   \u0026\u0026 rm -rf /var/lib/apt/lists/* # buildkit"
    },
    {
      "index": 6,
      "id": "7dad9a9b66e15de48259f5309c3e848d313c18fdc6d426c38810531ebb2dafa4",
      "digestId": "sha256:5ad58e6ce81ee582e35130cc8096ca48879b97ec8d8b1307ec3d755db351334c",
      "sizeBytes": 0,
      "command": "WORKDIR /app"
    },
    {
      "index": 7,
      "id": "4d1abbde6932d2915dd70742a340fdc1316b335f71f8e63580c4314bfb1e439f",
      "digestId": "sha256:ca16732d02beba04af86da9d9eb761a00e71db2c1309ed24630da5a8e9435f0e",
      "sizeBytes": 463,
      "command": "COPY requirements.txt ./ # buildkit"
    },
    {
      "index": 8,
      "id": "0bb90c033526f24d80b0871f210e67b050db72e5c82c0da7ec74c008bb46d798",
      "digestId": "sha256:104262ceef8f00470db0f66a9853f9c5c49690afa2f703689c7dd9fabf6281f8",
      "sizeBytes": 260814714,
      "command": "RUN |1 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 /bin/sh -c pip install --no-cache-dir -r requirements.txt # buildkit"
    },
    {
      "index": 9,
      "id": "7ac02b3c278d2557ce31a068334ef270d8064bddb27ec7cfd2ac2fbc7dfba411",
      "digestId": "sha256:95a2a643ae20f8ca2b1e97a110ae13099c681398d5312a3a77e604140fe31f80",
      "sizeBytes": 314170,
      "command": "COPY . . # buildkit"
    },
    {
      "index": 10,
      "id": "acc21e77c9cf6963361edda412fc409cafb3f2a6419a7502035bc032400af8c0",
      "digestId": "sha256:8afbdf04f0b0bdd98a49d0166da6afcefe7f5f4d70dbae4b8456773ff552f328",
      "sizeBytes": 0,
      "command": "RUN |2 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 LICENSE_KEY=wucCeFbqqrul4eni /bin/sh -c mkdir -p /app/geodb # buildkit"
    },
    {
      "index": 11,
      "id": "ab7e56a37db5654488174b8b39d4805fe793af6dedd821342d55551f2d34053e",
      "digestId": "sha256:e915678de67b06112b74af1454d60429fa1db9c7f804c6aa622cfbfcf0475d38",
      "sizeBytes": 35372350,
      "command": "RUN |2 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 LICENSE_KEY=wucCeFbqqrul4eni /bin/sh -c wget -O \"/app/geodb/GeoLite2-City.tar.gz\" \"https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City\u0026license_key=$LICENSE_KEY\u0026suffix=tar.gz\" # buildkit"
    },
    {
      "index": 12,
      "id": "06ecabc4d967e4f763951a5b0d4af883172e0cb17b18a704b82cef40a385bdfa",
      "digestId": "sha256:1c9edb4650215506fb7601252e38266c34157c934a46b4d32415843aee09de2b",
      "sizeBytes": 72302134,
      "command": "RUN |2 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 LICENSE_KEY=wucCeFbqqrul4eni /bin/sh -c tar -xzvf /app/geodb/GeoLite2-City.tar.gz -C /app/geodb # buildkit"
    },
    {
      "index": 13,
      "id": "82ca58770da751c8c13d1e7699cfd28f12a950f637ded9df3c6a5b661632091c",
      "digestId": "sha256:b36bb64594a393824c8d02d5aa286d0f3fcf708e8f3cb39fe61320867a8e55c0",
      "sizeBytes": 72301565,
      "command": "RUN |2 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 LICENSE_KEY=wucCeFbqqrul4eni /bin/sh -c cp /app/geodb/GeoLite2-City_*/GeoLite2-City.mmdb /app/geodb/GeoLite2-City.mmdb # buildkit"
    },
    {
      "index": 14,
      "id": "df9edf2b93eacb1c4cdc34e4d2a6a782e307182abca7a6f24657337ae65b378f",
      "digestId": "sha256:2745287d7d1beb2745583a47bbde97f464a9173a38f26153f4256d93b397f196",
      "sizeBytes": 0,
      "command": "RUN |2 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 LICENSE_KEY=wucCeFbqqrul4eni /bin/sh -c rm -rf /app/geodb/GeoLite2-City_* # buildkit"
    },
    {
      "index": 15,
      "id": "ba2ee3558a6b3de399ab72fe50e95996c75655d207c2cf15823fd78353a71ab7",
      "digestId": "sha256:9020537525f219d0bb8d7e03c432619fcd10dc60343ebb10d335ef6db64658f0",
      "sizeBytes": 0,
      "command": "RUN |2 git_sha=c6d4559847a11b173580a7db423954b83682e9e1 LICENSE_KEY=wucCeFbqqrul4eni /bin/sh -c rm /app/geodb/GeoLite2-City.tar.gz # buildkit"
    },
    {
      "index": 16,
      "id": "34fa4e6df29141451ba040021af46a0730f5040b1dc473a7570b914ccdcbd838",
      "digestId": "sha256:bd581f00316dc9fbf34527e8ffaf24dbac875f0db8492900739d744c2cb07fe2",
      "sizeBytes": 261,
      "command": "COPY bin/entry.sh /app/entry.sh # buildkit"
    }
  ],
  "image": {
    "sizeBytes": 572930786,
    "inefficientBytes": 42407402,
    "efficiencyScore": 0.9368941776870281,
    "fileReference": [
      {
        "count": 2,
        "sizeBytes": 35372350,
        "file": "/app/geodb/GeoLite2-City.tar.gz"
      },
      {
        "count": 4,
        "sizeBytes": 3086616,
        "file": "/var/cache/debconf/templates.dat"
      },
      {
        "count": 3,
        "sizeBytes": 2291226,
        "file": "/var/cache/debconf/templates.dat-old"
      },
      {
        "count": 5,
        "sizeBytes": 431102,
        "file": "/var/lib/dpkg/status"
      },
      {
        "count": 5,
        "sizeBytes": 431040,
        "file": "/var/lib/dpkg/status-old"
      },
      {
        "count": 4,
        "sizeBytes": 365531,
        "file": "/var/log/dpkg.log"
      },
      {
        "count": 4,
        "sizeBytes": 137634,
        "file": "/var/log/apt/term.log"
      },
      {
        "count": 2,
        "sizeBytes": 82144,
        "file": "/var/lib/dpkg/info/perl-base.list"
      },
      {
        "count": 4,
        "sizeBytes": 52836,
        "file": "/var/cache/debconf/config.dat"
      },
      {
        "count": 4,
        "sizeBytes": 31800,
        "file": "/var/log/apt/history.log"
      },
      {
        "count": 5,
        "sizeBytes": 26786,
        "file": "/etc/ld.so.cache"
      },
      {
        "count": 4,
        "sizeBytes": 26148,
        "file": "/var/log/apt/eipp.log.xz"
      },
      {
        "count": 3,
        "sizeBytes": 24802,
        "file": "/var/cache/debconf/config.dat-old"
      },
      {
        "count": 5,
        "sizeBytes": 24543,
        "file": "/var/lib/apt/extended_states"
      },
      {
        "count": 4,
        "sizeBytes": 22421,
        "file": "/var/cache/ldconfig/aux-cache"
      },
      {
        "count": 2,
        "sizeBytes": 423,
        "file": "/root/.wget-hsts"
      },
      {
        "count": 5,
        "sizeBytes": 0,
        "file": "/var/lib/dpkg/triggers/Lock"
      },
      {
        "count": 2,
        "sizeBytes": 0,
        "file": "/etc/systemd/user"
      },
      {
        "count": 2,
        "sizeBytes": 0,
        "file": "/usr/include"
      },
      {
        "count": 4,
        "sizeBytes": 0,
        "file": "/var/lib/dpkg/lock-frontend"
      },
      {
        "count": 4,
        "sizeBytes": 0,
        "file": "/var/lib/dpkg/updates"
      },
      {
        "count": 3,
        "sizeBytes": 0,
        "file": "/var/cache/apt/archives/lock"
      },
      {
        "count": 2,
        "sizeBytes": 0,
        "file": "/usr/src"
      },
      {
        "count": 4,
        "sizeBytes": 0,
        "file": "/tmp"
      },
      {
        "count": 3,
        "sizeBytes": 0,
        "file": "/var/cache/apt/archives/partial"
      },
      {
        "count": 4,
        "sizeBytes": 0,
        "file": "/var/cache/debconf/passwords.dat"
      },
      {
        "count": 2,
        "sizeBytes": 0,
        "file": "/var/lib/dpkg/triggers/Unincorp"
      },
      {
        "count": 2,
        "sizeBytes": 0,
        "file": "/usr/bin"
      },
      {
        "count": 4,
        "sizeBytes": 0,
        "file": "/var/lib/apt/lists"
      },
      {
        "count": 5,
        "sizeBytes": 0,
        "file": "/var/lib/dpkg/lock"
      }
    ]
  }
}

@sre-read-write sre-read-write bot force-pushed the repo-sync/site-reliability-engineering/default branch from 129b323 to 57e047d Compare September 13, 2023 13:41
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 546.40MiB
Inefficient Bytes 40.45MiB
Efficiency Percentage 93.69%
Total Layers 17

See the PR run for more details

@sre-read-write sre-read-write bot force-pushed the repo-sync/site-reliability-engineering/default branch from 57e047d to 3d6653e Compare September 14, 2023 13:41
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.56GiB
Inefficient Bytes 44.95MiB
Efficiency Percentage 97.42%
Total Layers 21

See the PR run for more details

@sre-read-write sre-read-write bot force-pushed the repo-sync/site-reliability-engineering/default branch from 3d6653e to 9bf3ced Compare September 15, 2023 13:41
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.56GiB
Inefficient Bytes 44.93MiB
Efficiency Percentage 97.43%
Total Layers 21

See the PR run for more details

@sre-read-write sre-read-write bot force-pushed the repo-sync/site-reliability-engineering/default branch from 9bf3ced to ab7e981 Compare September 16, 2023 13:41
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.57GiB
Inefficient Bytes 45.46MiB
Efficiency Percentage 97.41%
Total Layers 21

See the PR run for more details

@sre-read-write sre-read-write bot force-pushed the repo-sync/site-reliability-engineering/default branch from ab7e981 to fc455fb Compare September 17, 2023 13:41
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.57GiB
Inefficient Bytes 45.46MiB
Efficiency Percentage 97.41%
Total Layers 21

See the PR run for more details

…emote 'tools/sre_file_sync/export_github_data.yml'
@sre-read-write sre-read-write bot force-pushed the repo-sync/site-reliability-engineering/default branch from fc455fb to ae9c786 Compare September 18, 2023 13:41
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.57GiB
Inefficient Bytes 44.94MiB
Efficiency Percentage 97.45%
Total Layers 21

See the PR run for more details

@sylviamclaughlin sylviamclaughlin merged commit 4ea1a3e into main Sep 18, 2023
3 checks passed
@sylviamclaughlin sylviamclaughlin deleted the repo-sync/site-reliability-engineering/default branch September 18, 2023 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants