diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a96b9d7..e286001 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -64,7 +64,7 @@ jobs: push: false context: . load: true - tags: github-graphql-client:latest + tags: github-commit-sign:latest - name: Run Docker tests env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4156b2..22c8a66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,9 @@ on: jobs: publish: runs-on: ubuntu-20.04 + permissions: + contents: read + id-token: write steps: - name: Clone repo diff --git a/README.md b/README.md index 3e3e1ba..07e98f4 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ You can use this module as a GitHub Action. It is a Docker-based action. ```yaml # Print help - name: Print graphQL client help - uses: pirafrank/github-graphql-client@v0 + uses: pirafrank/github-commit-sign@v0 with: args: "--help" ``` @@ -132,7 +132,7 @@ To commit to other repositories, you may need to override the default `GITHUB_TO # Commit changes... - name: Commit changes id: commit_changes - uses: pirafrank/github-graphql-client@v0 + uses: pirafrank/github-commit-sign@v0 if: ${{ vars.RUN_COMMIT_CHANGES == 'true' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package-lock.json b/package-lock.json index 2c09c68..ff3aef6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@pirafrank/github-graphql-client", - "version": "0.1.3", + "name": "@pirafrank/github-commit-sign", + "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@pirafrank/github-graphql-client", - "version": "0.1.3", + "name": "@pirafrank/github-commit-sign", + "version": "0.1.4", "license": "MIT", "dependencies": { "graphql": "^16.8.1", diff --git a/package.json b/package.json index 848db4a..6917459 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@pirafrank/github-graphql-client", - "version": "0.1.3", + "name": "@pirafrank/github-commit-sign", + "version": "0.1.4", "description": "Simple GitHub client to commit via their graphql APIs", "main": "index.js", "private": false, @@ -12,7 +12,7 @@ "test": "jest --runInBand", "test:index": "jest --runInBand --testPathPattern=index.test.js", "test:github": "jest --runInBand --testPathPattern=github.test.js", - "docker:build": "docker build -t github-graphql-client -f Dockerfile .", + "docker:build": "docker build -t github-commit-sign -f Dockerfile .", "docker:test": "./test.docker.sh", "docker:all": "npm run docker:build && npm run docker:test" }, @@ -21,18 +21,20 @@ "github", "graphql", "client", - "commit" + "commit", + "signed", + "sign" ], "author": "pirafrank", "url": "https://fpira.com/", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/pirafrank/github-graphql-client.git" + "url": "git+https://github.com/pirafrank/github-commit-sign.git" }, - "homepage": "https://github.com/pirafrank/github-graphql-client", + "homepage": "https://github.com/pirafrank/github-commit-sign", "bugs": { - "url": "https://github.com/pirafrank/github-graphql-client/issues" + "url": "https://github.com/pirafrank/github-commit-sign/issues" }, "dependencies": { "graphql": "^16.8.1", diff --git a/test.docker.sh b/test.docker.sh index 0ce8416..e1ba810 100755 --- a/test.docker.sh +++ b/test.docker.sh @@ -9,7 +9,7 @@ docker run --rm \ -v ./dummy:/app/dummy \ -w /app \ -e DEBUG \ -github-graphql-client:latest "--help" +github-commit-sign:latest "--help" echo "************** version *****************" @@ -18,7 +18,7 @@ docker run --rm \ -v ./dummy:/app/dummy \ -w /app \ -e DEBUG \ -github-graphql-client:latest "-v" +github-commit-sign:latest "-v" # commands below need GITHUB_TOKEN to be set. if [[ -f .env.sh ]]; then @@ -39,7 +39,7 @@ docker run --rm \ -w /app \ -e GITHUB_TOKEN \ -e DEBUG \ -github-graphql-client:latest commit -o pirafrank -r 'test-repo' -c dummy/file1.txt -m 'this is a commit msg' +github-commit-sign:latest commit -o pirafrank -r 'test-repo' -c dummy/file1.txt -m 'this is a commit msg' echo "************** all separated *****************" @@ -49,7 +49,7 @@ docker run --rm \ -w /app \ -e GITHUB_TOKEN \ -e DEBUG \ -github-graphql-client:latest commit -o pirafrank -r 'test-repo' -b main -c dummy/file1.txt -m onewordcommitmsg +github-commit-sign:latest commit -o pirafrank -r 'test-repo' -b main -c dummy/file1.txt -m onewordcommitmsg echo "************** all as one arg *****************" @@ -61,4 +61,4 @@ docker run --rm \ -w /app \ -e GITHUB_TOKEN \ -e DEBUG \ -github-graphql-client:latest "commit -o pirafrank -r "test-repo" -b main -c dummy/file1.txt -m 'this is a commit msg'" +github-commit-sign:latest "commit -o pirafrank -r "test-repo" -b main -c dummy/file1.txt -m 'this is a commit msg'"