Skip to content

Bump tough-cookie from 4.0.0 to 4.1.3 #2441

Bump tough-cookie from 4.0.0 to 4.1.3

Bump tough-cookie from 4.0.0 to 4.1.3 #2441

Workflow file for this run

name: GitLab
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
services:
gitlab:
image: docker://gitlab/gitlab-ce
ports: ['8000:8000']
env:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:8000/gitlab'
nginx['custom_nginx_config'] = '
server {
listen 8000;
location /gitlab {
proxy_set_header Host $http_host;
proxy_pass http://gitlab-workhorse;
}
}
'
steps:
- uses: actions/checkout@v3
- name: Configure credentials
run: |
docker exec ${{ job.services.gitlab.id }} bin/gitlab-rails runner "
; user = User.find_by_username('root')
; user.password = '${{ github.token }}'
; user.password_confirmation = '${{ github.token }}'
; user.save!
; token = user.personal_access_tokens.create(scopes: [:api], name: 'Token', expires_at: 1.days.from_now)
; token.set_token('${{ github.token }}')
; token.save!
"
- name: Create test project
run: |
curl "http://localhost:8000/gitlab/api/v4/projects" \
--header "PRIVATE-TOKEN: ${{ github.token }}" \
--request POST \
--get \
--data "name=test"
- name: Create test commit
run: |
curl "http://localhost:8000/gitlab/api/v4/projects/root%2Ftest/repository/files/README.md" \
--header "PRIVATE-TOKEN: ${{ github.token }}" \
--request POST \
--get \
--data "author_email=test@test" \
--data "author_name=Test" \
--data "branch=main" \
--data "commit_message=Create%20README.md" \
--data "content=Test"
- name: Get last commit
id: commit
run: |
curl "http://localhost:8000/gitlab/api/v4/projects/root%2Ftest/repository/commits/main" \
--header "PRIVATE-TOKEN: ${{ github.token }}" \
--request GET \
| jq -r .id \
| xargs -0 printf "hash=%s" >> $GITHUB_OUTPUT
- run: npm ci
- name: Run cml-send-comment
run: |
node bin/cml.js send-comment \
--token=${{ github.token }} \
--repo=http://localhost:8000/gitlab/root/test \
--commit-sha=${{ steps.commit.outputs.hash }} \
--driver=gitlab \
<(echo message)