mirror of
https://data.forgejo.org/actions/checkout
synced 2026-08-15 00:46:04 +00:00
Merge d323a00b36 into 1b0793cc05
This commit is contained in:
commit
a454d67cb6
37 changed files with 2405 additions and 565 deletions
115
.github/instructions/*.instructions.md
vendored
Normal file
115
.github/instructions/*.instructions.md
vendored
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
# AI-HUB-ENTERPRISE Repository Instructions
|
||||
|
||||
## Overview
|
||||
|
||||
AI-HUB-ENTERPRISE is an Enterprise AI Platform built using Zero Trust Architecture, DevSecOps, Cloud Native principles, and Privacy-by-Design.
|
||||
|
||||
## Core Principles
|
||||
|
||||
* Security First
|
||||
* Zero Trust
|
||||
* Privacy by Design
|
||||
* Compliance by Default
|
||||
* Infrastructure as Code
|
||||
* AI Governance
|
||||
* Open Source Best Practices
|
||||
|
||||
## Technology Stack
|
||||
|
||||
* TypeScript
|
||||
* JavaScript
|
||||
* Python
|
||||
* Node.js
|
||||
* Express
|
||||
* NestJS
|
||||
* PostgreSQL
|
||||
* Redis
|
||||
* Docker
|
||||
* Kubernetes
|
||||
* Terraform
|
||||
* GitHub Actions
|
||||
* OpenAI
|
||||
* LangChain
|
||||
* Qdrant
|
||||
* Prometheus
|
||||
* Grafana
|
||||
|
||||
## Architecture Standards
|
||||
|
||||
* Microservices
|
||||
* API First
|
||||
* Event Driven
|
||||
* Domain Driven Design
|
||||
* Multi Cloud
|
||||
* High Availability
|
||||
* Observability
|
||||
|
||||
## Security Requirements
|
||||
|
||||
* MFA Required
|
||||
* RBAC Required
|
||||
* Least Privilege
|
||||
* Encryption at Rest
|
||||
* Encryption in Transit
|
||||
* Audit Logging
|
||||
* Secret Scanning
|
||||
* Dependency Review
|
||||
* SBOM Generation
|
||||
|
||||
## Compliance Requirements
|
||||
|
||||
* PDPA
|
||||
* GDPR
|
||||
* ISO 27001
|
||||
* SOC 2
|
||||
* NIST Cybersecurity Framework
|
||||
|
||||
## Development Standards
|
||||
|
||||
* Pull Request Required
|
||||
* Branch Protection Enabled
|
||||
* CI/CD Validation Required
|
||||
* Code Review Required
|
||||
* Signed Commits Preferred
|
||||
|
||||
## Branch Strategy
|
||||
|
||||
* main
|
||||
* develop
|
||||
* security
|
||||
* compliance
|
||||
* infrastructure
|
||||
* docs
|
||||
* feature/*
|
||||
|
||||
## Repository Structure
|
||||
|
||||
* apps/
|
||||
* packages/
|
||||
* infrastructure/
|
||||
* security/
|
||||
* compliance/
|
||||
* docs/
|
||||
* tests/
|
||||
* legal/
|
||||
|
||||
## AI Agent Instructions
|
||||
|
||||
Always:
|
||||
|
||||
1. Prioritize security.
|
||||
2. Follow Zero Trust principles.
|
||||
3. Validate dependencies.
|
||||
4. Protect personal data.
|
||||
5. Generate audit-friendly outputs.
|
||||
6. Respect compliance requirements.
|
||||
7. Avoid exposing secrets.
|
||||
8. Prefer reusable, maintainable code.
|
||||
9. Document architecture decisions.
|
||||
10. Preserve backward compatibility when possible.
|
||||
|
||||
## Licensing
|
||||
|
||||
Primary License: MIT
|
||||
|
||||
Copyright © Pichai Takengrach
|
||||
6
.github/workflows/check-dist.yml
vendored
6
.github/workflows/check-dist.yml
vendored
|
|
@ -22,12 +22,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.6
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Set Node.js 20.x
|
||||
- name: Set Node.js 24.x
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
node-version: 24.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
|
|
|||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
|
|
|
|||
2
.github/workflows/licensed.yml
vendored
2
.github/workflows/licensed.yml
vendored
|
|
@ -9,6 +9,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
name: Check licenses
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.6
|
||||
- uses: actions/checkout@v6
|
||||
- run: npm ci
|
||||
- run: npm run licensed-check
|
||||
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
- name: Publish
|
||||
id: publish
|
||||
uses: actions/publish-immutable-action@v0.0.4
|
||||
|
|
|
|||
54
.github/workflows/test.yml
vendored
54
.github/workflows/test.yml
vendored
|
|
@ -18,8 +18,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
- uses: actions/checkout@v4.1.6
|
||||
node-version: 24.x
|
||||
- uses: actions/checkout@v6
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm run format-check
|
||||
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
steps:
|
||||
# Clone this repo
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Basic checkout
|
||||
- name: Checkout basic
|
||||
|
|
@ -87,6 +87,17 @@ jobs:
|
|||
- name: Verify fetch filter
|
||||
run: __test__/verify-fetch-filter.sh
|
||||
|
||||
# Fetch tags
|
||||
- name: Checkout with fetch-tags
|
||||
uses: ./
|
||||
with:
|
||||
ref: test-data/v2/basic
|
||||
path: fetch-tags-test
|
||||
fetch-tags: true
|
||||
- name: Verify fetch-tags
|
||||
shell: bash
|
||||
run: __test__/verify-fetch-tags.sh
|
||||
|
||||
# Sparse checkout
|
||||
- name: Sparse checkout
|
||||
uses: ./
|
||||
|
|
@ -165,6 +176,22 @@ jobs:
|
|||
- name: Verify submodules recursive
|
||||
run: __test__/verify-submodules-recursive.sh
|
||||
|
||||
# Worktree credentials
|
||||
- name: Checkout for worktree test
|
||||
uses: ./
|
||||
with:
|
||||
path: worktree-test
|
||||
- name: Verify worktree credentials
|
||||
shell: bash
|
||||
run: __test__/verify-worktree.sh worktree-test worktree-branch
|
||||
|
||||
# Worktree credentials in container step
|
||||
- name: Verify worktree credentials in container step
|
||||
if: runner.os == 'Linux'
|
||||
uses: docker://bitnami/git:latest
|
||||
with:
|
||||
args: bash __test__/verify-worktree.sh worktree-test container-worktree-branch
|
||||
|
||||
# Basic checkout using REST API
|
||||
- name: Remove basic
|
||||
if: runner.os != 'windows'
|
||||
|
|
@ -202,7 +229,7 @@ jobs:
|
|||
steps:
|
||||
# Clone this repo
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Basic checkout using git
|
||||
- name: Checkout basic
|
||||
|
|
@ -234,7 +261,7 @@ jobs:
|
|||
steps:
|
||||
# Clone this repo
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Basic checkout using git
|
||||
- name: Checkout basic
|
||||
|
|
@ -264,7 +291,7 @@ jobs:
|
|||
steps:
|
||||
# Clone this repo
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: localClone
|
||||
|
||||
|
|
@ -291,8 +318,8 @@ jobs:
|
|||
git fetch --no-tags --depth=1 origin +refs/heads/main:refs/remotes/origin/main
|
||||
|
||||
# needed to make checkout post cleanup succeed
|
||||
- name: Fix Checkout v4
|
||||
uses: actions/checkout@v4.1.6
|
||||
- name: Fix Checkout v6
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: localClone
|
||||
|
||||
|
|
@ -301,13 +328,16 @@ jobs:
|
|||
steps:
|
||||
# Clone this repo
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: actions-checkout
|
||||
|
||||
# Basic checkout using git
|
||||
- name: Checkout basic
|
||||
id: checkout
|
||||
uses: ./
|
||||
uses: ./actions-checkout
|
||||
with:
|
||||
path: cloned-using-local-action
|
||||
ref: test-data/v2/basic
|
||||
|
||||
# Verify output
|
||||
|
|
@ -325,7 +355,3 @@ jobs:
|
|||
echo "Expected commit to be 82f71901cf8c021332310dcc8cdba84c4193ff5d"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# needed to make checkout post cleanup succeed
|
||||
- name: Fix Checkout
|
||||
uses: actions/checkout@v4.1.6
|
||||
|
|
|
|||
3
.github/workflows/update-main-version.yml
vendored
3
.github/workflows/update-main-version.yml
vendored
|
|
@ -11,6 +11,7 @@ on:
|
|||
type: choice
|
||||
description: The major version to update
|
||||
options:
|
||||
- v5
|
||||
- v4
|
||||
- v3
|
||||
- v2
|
||||
|
|
@ -22,7 +23,7 @@ jobs:
|
|||
# Note this update workflow can also be used as a rollback tool.
|
||||
# For that reason, it's best to pin `actions/checkout` to a known, stable version
|
||||
# (typically, about two releases back).
|
||||
- uses: actions/checkout@v4.1.6
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Git config
|
||||
|
|
|
|||
2
.github/workflows/update-test-ubuntu-git.yml
vendored
2
.github/workflows/update-test-ubuntu-git.yml
vendored
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Use `docker/login-action` to log in to GHCR.io.
|
||||
# Once published, the packages are scoped to the account defined here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue