# Github failing with error code1 Run postman collection

**URL:** <https://community.postman.com/t/github-failing-with-error-code1-run-postman-collection/58665>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [March 10, 2024, 9:29am UTC](https://community.postman.com/t/github-failing-with-error-code1-run-postman-collection/58665 "2024-03-10T09:29:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-engineer16](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@technical-engineer16](https://community.postman.com/u/technical-engineer16)\
**Post date:** [March 10, 2024, 9:29am UTC](https://community.postman.com/t/github-failing-with-error-code1-run-postman-collection/58665/1 "2024-03-10T09:29:14Z")

</div>

hi, I did run the git hub action but suddenly I keep getting error code 1 on “Run postman collection”  
Any idea why? **I did not change a thing**.

 ![Screenshot 2024-03-10 at 11.21.35](https://us1.discourse-cdn.com/getpostman/original/3X/8/3/834980561628546ec4b2a9e0b15ed441837f8e0e.png)

name: Test-Build  
on:  
push:  
branches: [main]  
pull\_request:  
branches: [main]

```
workflow_dispatch:
    inputs:
      environment:
        description: "Insert the environment"     
        default: "integration.postman_environment.json"
        type: "string"
      tags:
        description: 'Test scenario tags'  

```

jobs:  
test-api:  
runs-on: ubuntu-latest  
steps:  
# Checks-out your repository under $GITHUB\_WORKSPACE, so your job can access it  
- uses: actions/checkout@v4

```
# INstall Node on the runner
- name: Install Node
  uses: actions/setup-node@v3
  with: 
    node-version: '20.x'

# Install the newman command line utility and also install the HTML extra reporter
- name: Install newman
  run: |
   npm install -g newman
   npm install -g newman-reporter-htmlextra

# Make Directory to upload the test results
- name: Make Directory for results
  run: mkdir -p testResults

# Run the POSTMAN collection
- name: Run POSTMAN collection
  run: |
      newman run ./Sanity/Sanity.postman_collection.json -e ./environments/integration.postman_environment.json -r htmlextra --reporter-htmlextra-export testResults/htmlreport.html --reporter-htmlextra-darkTheme       
- name: Publish Report
  uses: actions/upload-artifact@v2
  with: 
   name: RunReports
   path: testResults

```

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [March 11, 2024, 2:56pm UTC](https://community.postman.com/t/github-failing-with-error-code1-run-postman-collection/58665/2 "2024-03-11T14:56:18Z")

</div>

Hi @technical-engineer16.

Welcome to the Postman Community.

You mentioned not changing a thing. Can you share the source of this YAML file? Is it authored by Postman?

Additionally, can you expand line 1 after the “Run POSTMAN collection” error to see if we can find any useful information there?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 10, 2024, 2:56pm UTC](https://community.postman.com/t/github-failing-with-error-code1-run-postman-collection/58665/3 "2024-04-10T14:56:33Z")

</div>

Closed on April 10, 2024, 2:56pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
