Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 63 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,63 @@
.github/workflows/ci.yml merge=ours
.github/workflows/promote.yml merge=ours
# Fork-sync protection for OutSystems-owned files.
#
# This repo is a fork of jpillora/chisel and is synced from upstream regularly.
# `merge=ours` keeps OUR version of a path when an upstream merge touches it.
#
# ⚠ REQUIRED ONE-TIME SETUP IN EVERY CLONE ⚠
# The `ours` merge driver is NOT built into git. Without this config these rules
# silently do nothing and upstream will overwrite the files below:
#
# git config merge.ours.driver true
#
# It is local config and cannot be committed, so each developer — and any CI
# job that merges from upstream — must run it once. Verify with:
#
# git config --get merge.ours.driver # must print: true
#
# Note: this protects MERGES. Cherry-picks of upstream commits that touch these
# paths still need manual review.

# --- Paths that exist in BOTH our fork and upstream (real collisions) ---
.github/workflows/ci.yml merge=ours

# promote.yml is NEUTERED, NOT DELETED, and must stay that way.
#
# Upstream ships a real 56-line workflow here: on `release: published` it
# retags the version manifest to latest/<major>/<major>.<minor> on GHCR AND
# Docker Hub via `docker buildx imagetools create` -- no vulnerability gate
# anywhere in front of it. We do not want it.
#
# We keep the path occupied by an INERT PLACEHOLDER: a valid workflow whose
# only trigger is workflow_dispatch and whose only job explains itself and
# fails. That is load-bearing in two ways:
# 1. it can never fire on its own, and holds no permissions;
# 2. `merge=ours` binds to a PATH. With the path occupied, every upstream
# sync resolves in our favour and upstream's version stays out.
#
# Deleting the path instead would remove the shield silently -- nothing fails
# until the next sync, which then restores upstream's version.
#
# Production OutSystems/chisel currently truncates this file to 0 bytes
# instead. That works, but GitHub records a FAILED run for an unparseable
# workflow on every push, and a permanently red Actions tab trains people to
# ignore the red that matters. Fold this approach back at cutover.
#
# CI pins the file by SHA-256, so a cherry-pick or hand edit fails the build:
# see "Assert neutered workflows are still neutered" in ci.yml.
.github/workflows/promote.yml merge=ours

# --- OutSystems-only files (RDODCP-1463). No upstream collision today;
# these entries are defensive in case upstream later adds the same paths. ---
.github/workflows/release.yml merge=ours
.github/workflows/rescan.yml merge=ours
.trivyignore merge=ours
.grype.yaml merge=ours
.gitattributes merge=ours
scripts/scan-report.sh merge=ours
scripts/setup-fork-sync.sh merge=ours

# --- OutSystems-only, pre-existing. Upstream keeps its own copies under
# .github/ (goreleaser.yml, ko-base.Dockerfile), so these do not collide
# today, but they are ours and must survive any future upstream change. ---
goreleaser.yml merge=ours
Dockerfile merge=ours
12 changes: 12 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@

# Global reviewers
* @OutSystems/cloud-enablement-services

# The build and release pipeline, and everything the vulnerability gate depends
# on. A change here can publish an unscanned artifact or exfiltrate a token, so
# it must not ride along in an unrelated review.
/.github/workflows/ @OutSystems/cloud-enablement-services
/.github/dependabot.yml @OutSystems/cloud-enablement-services
/scripts/ @OutSystems/cloud-enablement-services
/goreleaser.yml @OutSystems/cloud-enablement-services
/Dockerfile @OutSystems/cloud-enablement-services
/.trivyignore @OutSystems/cloud-enablement-services
/.grype.yaml @OutSystems/cloud-enablement-services
/.gitattributes @OutSystems/cloud-enablement-services
19 changes: 14 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
# GitHub Actions.
# Weekly, not monthly: anchore/scan-action pins the Grype binary INSIDE the
# action (GrypeVersion.js), so bumping the action is the only way that pin
# moves. A month of drift here is a month of scanning with an old database.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"

# Base images. Proposes a PR when a newer base image is published.
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"

# Dependencies listed in go.mod
# Go modules.
- package-ecosystem: "gomod"
directory: "/" # Location of package manifests
directory: "/"
schedule:
interval: "monthly"
interval: "monthly"
Loading
Loading