Giter VIP home page Giter VIP logo

github-create-release-action's People

Contributors

djpm05 avatar lbr-ls avatar renovate[bot] avatar roang-zero1 avatar serucee avatar toumash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-create-release-action's Issues

Release description ends with %0A

My CHANGELOG.md contains the text:

$ cat CHANGELOG.md
# Changelog

## v1.0.0

Initial Release.

The created release contains description: Initial Release.%0A. It contains additional %0A characters at the end.

on:
  push:
    branches: [ main ]
    tags:
      - 'v*.*.*'

jobs:
  build:
    ...
  release:
    name: "Create release"
    needs: build
    runs-on: ubuntu-latest
    if: contains(github.ref, '/tags/v')

    steps:
      - uses: actions/checkout@v3

      - name: Create GitHub release
        uses: Roang-zero1/github-create-release-action@v3
        with:
          version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
$ hexdump -C CHANGELOG.md 
00000000  23 20 43 68 61 6e 67 65  6c 6f 67 0a 0a 23 23 20  |# Changelog..## |
00000010  76 31 2e 30 2e 30 0a 0a  49 6e 69 74 69 61 6c 20  |v1.0.0..Initial |
00000020  52 65 6c 65 61 73 65 2e                           |Release.|
00000028

Tried with and without a newline (\n = 0x0A) at the end of the file.

Any suggestion?

Error building Dockerfile

I just got this issue on a pipeline that was running for a good ~year.
Should we just make a PR to update the Dockerfile with newer curl and jq?
Would the maintainer accept it?

Step 1/6 : FROM alpine:3.16 as base
   ---> 9c6f07244728
  Step 2/6 : RUN apk add --no-cache jq=1.6-r1 curl=7.83.1-r2
   ---> Running in [redacted github repo url]
  fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
  fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
  ERROR: unable to select packages:
    curl-7.83.1-r3:
      breaks: world[curl=7.83.1-r2]
  The command '/bin/sh -c apk add --no-cache jq=1.6-r1 curl=7.83.1-r2' returned a non-zero code: 1
  Warning: Docker build failed with exit code 1, back off 2.884 seconds before retry.

Repro steps

Run the following shell script on a machine with git & docker installed.

git clone [email protected]:Roang-zero1/github-create-release-action.git
cd .\github-create-release-action\
docker build .

You will get an error

[+] Building 3.5s (6/8)
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 494B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/alpine:3.16                                                     0.7s
 => CACHED [1/4] FROM docker.io/library/alpine:3.16@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8  0.0s
 => [internal] load build context                                                                                  0.1s
 => => transferring context: 5.44kB                                                                                0.0s
 => ERROR [2/4] RUN apk add --no-cache jq=1.6-r1 curl=7.83.1-r2                                                    2.7s
------
 > [2/4] RUN apk add --no-cache jq=1.6-r1 curl=7.83.1-r2:
#4 0.395 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
#4 1.098 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
#4 2.649 ERROR: unable to select packages:
#4 2.669   curl-7.83.1-r3:
#4 2.669     breaks: world[curl=7.83.1-r2]
------
executor failed running [/bin/sh -c apk add --no-cache jq=1.6-r1 curl=7.83.1-r2]: exit code: 1

Have changelog as output

Since this action scrapes the changelog it would be nice to have that text as output for slack notifications etc.

Thanks

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • alpine 3.16

  • Check this box to trigger a request for Renovate to run again on this repository

GITHUB_TOKEN permissions used by this action

At https://github.com/step-security/secure-workflows we are building a knowledge-base (KB) of GITHUB_TOKEN permissions needed by different GitHub Actions. When developers try to set minimum token permissions for their workflows, they can use this knowledge-base instead of trying to research permissions needed by each GitHub Action they use.

Below you can see the KB of your GITHUB Action.

name: "GitHub Create Tag Release"
github-token:
  environment-variable-name: GITHUB_TOKEN
  permissions:
    contents: write
    contents-reason: to create new releases #Checkout: https://github.com/Roang-zero1/github-create-release-action/blob/master/entrypoint.sh#L115
    
#Fixes #694

If you think this information is not accurate, or if in the future your GitHub Action starts using a different set of permissions, please create an issue at https://github.com/step-security/secure-workflows/issues to let us know.

This issue is automatically created by our analysis bot, feel free to close after reading :)

References:

GitHub asks users to define workflow permissions, see https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/ and https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token for securing GitHub workflows against supply-chain attacks.

Setting minimum token permissions is also checked for by Open Source Security Foundation (OpenSSF) Scorecards. Scorecards recommend using https://github.com/step-security/secure-workflows so developers can fix this issue in an easier manner.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.