{"id":15099321,"url":"https://github.com/sainiabhishek/shared-workflows","last_synced_at":"2026-02-18T06:31:32.849Z","repository":{"id":256729384,"uuid":"856239792","full_name":"SAINIAbhishek/shared-workflows","owner":"SAINIAbhishek","description":"This repository contains shared workflows for GitHub Actions that are designed to streamline common tasks such as setting up environments, building, and testing applications.","archived":false,"fork":false,"pushed_at":"2024-09-13T06:51:55.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T02:53:32.331Z","etag":null,"topics":["actions","ci-cd","github-actions","pipeline","workflows","workflows-reusable"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SAINIAbhishek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T08:29:13.000Z","updated_at":"2024-10-02T10:29:50.000Z","dependencies_parsed_at":"2024-09-15T17:22:28.188Z","dependency_job_id":null,"html_url":"https://github.com/SAINIAbhishek/shared-workflows","commit_stats":null,"previous_names":["sainiabhishek/shared-workflows"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SAINIAbhishek/shared-workflows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAINIAbhishek%2Fshared-workflows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAINIAbhishek%2Fshared-workflows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAINIAbhishek%2Fshared-workflows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAINIAbhishek%2Fshared-workflows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SAINIAbhishek","download_url":"https://codeload.github.com/SAINIAbhishek/shared-workflows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAINIAbhishek%2Fshared-workflows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014003,"owners_count":26085343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","ci-cd","github-actions","pipeline","workflows","workflows-reusable"],"created_at":"2024-09-25T17:10:19.322Z","updated_at":"2025-10-13T02:05:35.920Z","avatar_url":"https://github.com/SAINIAbhishek.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shared Workflows for GitHub Actions\n\nThis repository contains shared workflows for GitHub Actions that are designed to streamline common tasks such as setting up environments, building, and testing applications.\n\n## Overview\n\nShared workflows are reusable configurations for GitHub Actions that help automate and standardize processes across multiple projects. This repository includes a shared workflow for setting up a Node.js environment.\n\n## Available Workflows\n\n### 1. Setup Node.js Environment\n\n**File:** `.github/workflows/setup-node.yml`\n\n**Description:** This workflow sets up a Node.js environment with a specified or default version. It is useful for ensuring that all projects use a consistent Node.js version.\n\n**Usage:**\n\nTo use this workflow in another repository, create a new workflow file in the `.github/workflows` directory of that repository and include the following configuration:\n\n```yaml\nname: CI\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n    branches:\n      - main\n\njobs:\n  setup-node:\n    uses: \u003cyour-repo\u003e/path/to/.github/workflows/setup-node.yml@main\n    with:\n      node-version: \"20.17.0\" # Optional: Specify the Node.js version you want to use\n```\n\n### 2. Cache and Install Dependencies\n\n**File:** `.github/workflows/cache-install-dependencies.yml`\n\n**Description:** This workflow caches Node.js modules to speed up dependency installation and ensures that dependencies are installed consistently based on a specified lock file.\n\n**Usage:**\n\nTo use this workflow in another repository, create a new workflow file in the `.github/workflows` directory of that repository and include the following configuration:\n\n```yaml\nname: CI\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n    branches:\n      - main\n\njobs:\n  cache-install-dependencies:\n    uses: \u003cyour-repo\u003e/path/to/.github/workflows/cache-install-dependencies.yml@main\n    with:\n      node-version: \"20.17.0\" # Optional: Specify the Node.js version\n      lock-file: \"package-lock.json\" # Optional: Specify the lock file path\n      cache-path: \"server/node_modules\" # Optional: Specify the cache file path\n      cache-key-prefix: \"server-node\" # Optional: Specify the cache key name\n      working-directory: \"server\"\n```\n\n### 3 Security Audit\n\n**File:** `.github/workflows/security-audit.yml`\n\n**Description:** This workflow performs a security audit of the project, using npm audit by default, and provides flexibility for other audit or security-related commands. It also caches Node.js modules based on the lock file and provides options to continue the workflow on error or stop.\n\n**Usage:**\n\nTo use this workflow in another repository, create a new workflow file in the `.github/workflows` directory of that repository and include the following configuration:\n\n```yaml\nname: CI\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n    branches:\n      - main\n\njobs:\n  cache-install-dependencies:\n    uses: \u003cyour-repo\u003e/path/to/.github/workflows/security-audit.yml@main\n    with:\n      node-version: 'latest' # Specify the Node version\n      lock-file: 'package-lock.json' # Specify the lock file for caching\n      cache-path: 'node_modules' # Specify the cache directory\n      cache-key-prefix: 'node' # Specify cache key prefix\n      continue-on-error: true # Specify whether to continue on error\n      run-cmd: 'npm audit --audit-level=high' # Specify the command to run for auditing\n      working-directory: 'server' # Specify the working directory\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainiabhishek%2Fshared-workflows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsainiabhishek%2Fshared-workflows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainiabhishek%2Fshared-workflows/lists"}