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

Unable to create a release #199

Open
jessicafileto-nomad opened this issue Sep 2, 2024 · 0 comments
Open

Unable to create a release #199

jessicafileto-nomad opened this issue Sep 2, 2024 · 0 comments

Comments

@jessicafileto-nomad
Copy link

jessicafileto-nomad commented Sep 2, 2024

Github Sentry Action Release Bug Report

Environment

How do you use this action?

I'm trying to publish a release to sentry. That is my workflow:

name: Create Sentry release

on:
  workflow_call:
    secrets:
      SENTRY_AUTH_TOKEN:
        required: true
    inputs:
      environment:
        description: 'The environment at which the service is going to be deployed to'
        required: true
        type: string

jobs:
  execution:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Tells sentry about a release
        uses: getsentry/action-release@v1
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: 'myorg'
          SENTRY_PROJECT: 'myproject'
          SENTRY_LOG_LEVEL: debug

        with:
          environment: ${{ inputs.environment }}
          sourcemaps: './src'

Which version of the action?
v1

Steps to Reproduce

Runs my workflow after pushing on development.

Expected Result

Creates a new release on sentry.

Actual Result

The action throwns an error:

/usr/bin/docker run --name ghcriogetsentryactionreleaseimagelatest_40d5b5 --label 629d8a --workdir /github/workspace --rm -e "SENTRY_AUTH_TOKEN" -e "SENTRY_ORG" -e "SENTRY_PROJECT" -e "SENTRY_LOG_LEVEL" -e "INPUT_ENVIRONMENT" -e "INPUT_SOURCEMAPS" -e "INPUT_FINALIZE" -e "INPUT_IGNORE_MISSING" -e "INPUT_IGNORE_EMPTY" -e "INPUT_STARTED_AT" -e "INPUT_VERSION" -e "INPUT_VERSION_PREFIX" -e "INPUT_SET_COMMITS" -e "INPUT_PROJECTS" -e "INPUT_URL_PREFIX" -e "INPUT_STRIP_COMMON_PREFIX" -e "INPUT_WORKING_DIRECTORY" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/****/*****":"/github/workspace" ghcr.io/getsentry/action-release-image:latest
Error: Command failed: /action-release/node_modules/@sentry/cli-linux-x64/bin/sentry-cli releases new 7[12](https://github.com/****/****/actions/runs/****/job/*****#step:4:13)c2b44b3d091686c21106feeed3b5e5e0e377d -p projectname
  DEBUG   2024-09-02 17:52:32.523592110 +00:00 sentry-cli version: 2.24.1, platform: "linux", architecture: "x86_64"
  INFO    2024-09-02 17:52:32.523650570 +00:00 sentry-cli was invoked with the following command line: "/action-release/node_modules/@sentry/cli-linux-x64/bin/sentry-cli" "releases" "new" "712c2b44b3d091686c21106feeed3b5e5e0e377d" "-p" "projectname"
  DEBUG   2024-09-02 17:52:32.524170414 +00:00 request POST https://sentry.io/api/0/projects/org/project/releases/
  DEBUG   2024-09-02 17:52:32.5241910[13]((https://github.com/****/****/actions/runs/****/job/*****#step:4:14) +00:00 pipeline: github-action-release/1.4.1
  DEBUG   2024-09-02 17:52:32.524204208 +00:00 using token authentication
  DEBUG   2024-09-02 17:52:32.524229565 +00:00 json body: {"version":"712c2b44b3d091686c21106feeed3b5e5e0e377d","projects":["projectname"],"dateStarted":"2024-09-02T17:52:32.524[14]((https://github.com/****/****/actions/runs/****/job/*****#step:4:15)7862Z"}
  DEBUG   2024-09-02 17:52:32.524240876 +00:00 retry number 0, max retries: 0
  DEBUG   2024-09-02 17:52:32.657325877 +00:00 > POST /api/0/projects/org/project/releases/ HTTP/1.1
  DEBUG   2024-09-02 17:52:32.657360472 +00:00 > Host: sentry.io
  DEBUG   2024-09-02 17:52:32.657372404 +00:00 > Accept: */*
  DEBUG   2024-09-02 17:52:32.657380739 +00:00 > Connection: TE
  DEBUG   2024-09-02 17:52:32.657388003 +00:00 > TE: gzip
  DEBUG   2024-09-02 17:52:32.657396489 +00:00 > User-Agent: sentry-cli/2.24.1 github-action-release/1.4.1
  DEBUG   2024-09-02 17:52:32.658208731 +00:00 > Authorization: ***
  DEBUG   2024-09-02 17:52:32.658231103 +00:00 > Content-Type: application/json
  DEBUG   2024-09-02 17:52:32.658241112 +00:00 > Content-Length: 127
  DEBUG   2024-09-02 17:52:32.762766231 +00:00 < HTTP/1.1 401 Unauthorized
  DEBUG   2024-09-02 17:52:32.762825182 +00:00 < server: nginx
  DEBUG   2024-09-02 17:52:32.762841392 +00:00 < date: Mon, 02 Sep 2024 17:52:32 GMT
  DEBUG   2024-09-02 17:52:32.762854827 +00:00 < content-type: application/json
  DEBUG   2024-09-02 17:52:32.762869665 +00:00 < www-authenticate: xBasic realm="api"
  DEBUG   2024-09-02 17:52:32.762882950 +00:00 < allow: GET, POST, HEAD, OPTIONS
  DEBUG   2024-09-02 17:52:32.762895033 +00:00 < access-control-allow-methods: GET, POST, HEAD, OPTIONS
  DEBUG   2024-09-02 17:52:32.7629[15]((https://github.com/****/****/actions/runs/****/job/*****#step:4:16)191 +00:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2024-09-02 [17]((https://github.com/****/****/actions/runs/****/job/*****#step:4:18):52:32.762927103 +00:00 < access-control-expose-headers: X-Sentry-Error, X-Sentry-Direct-Hit, X-Hits, X-Max-Hits, Endpoint, Retry-After, Link
  DEBUG   2024-09-02 17:52:32.762938615 +00:00 < access-control-allow-origin: *
  DEBUG   2024-09-02 17:52:32.762949926 +00:00 < x-sentry-rate-limit-remaining: 39
  DEBUG   2024-09-02 17:52:32.762962309 +00:00 < x-sentry-rate-limit-limit: 40
  DEBUG   2024-09-02 17:52:32.763030827 +00:00 < x-sentry-rate-limit-reset: 1725299553
  DEBUG   2024-09-02 17:52:32.763045815 +00:00 < x-sentry-rate-limit-concurrentremaining: 24
  DEBUG   2024-09-02 17:52:32.763057848 +00:00 < x-sentry-rate-limit-concurrentlimit: 25
  DEBUG   2024-09-02 17:52:32.763069800 +00:00 < vary: Accept-Language, Cookie
  DEBUG   2024-09-02 17:52:32.763082544 +00:00 < content-language: en
  DEBUG   2024-09-02 17:52:32.763094817 +00:00 < x-frame-options: deny
  DEBUG   2024-09-02 17:52:32.763106569 +00:00 < x-content-type-options: nosniff
  DEBUG   2024-09-02 17:52:32.7631[19]((https://github.com/****/****/actions/runs/****/job/*****#step:4:20)453 +00:00 < x-xss-protection: 1; mode=block
  DEBUG   2024-09-02 17:52:32.763134742 +00:00 < content-security-policy: media-src *; default-src 'none'; base-uri 'none'; object-src 'none'; frame-src app.pendo.io demo.arcade.software js.stripe.com sentry.io; img-src * blob: data:; font-src * data:; frame-ancestors 'self' *.sentry.io; connect-src 'self' *.algolia.net *.algolianet.com *.algolia.io sentry.io *.sentry.io s1.sentry-cdn.com o1.ingest.sentry.io api2.amplitude.com app.pendo.io data.pendo.io reload.getsentry.net t687h3m0nh65.sta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant