Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Lab 1. Fork, Sign, and Open First PR #1005
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
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Lab 1. Fork, Sign, and Open First PR #1005
Changes from all commits
1d385b60a5300c3eb7af2726a40236a135a7e3105c4b4918974485d3098586aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Lab 1 submission
Фролова Анастасия Ивановна, M25-RO-01 a.frolova@innopolis.university
Ссылка на репозиторий: https://github.com/kicchhi/DevOps-Intro
Task 1 - Подписание коммитов
Домашняя работа была выполнена при помощи GitHub.
QuickNotes API outputs:
status:\ok}
Порядок выполнения
1. Установка GO;
2. Создание SSH ключа
ssh-keygen -t ed25519 -C "email-adress";3. Проверка создания ключа
ls ~\.ssh\Рисунок 1. Проверка создания ключа
SSH ключ нужен для:
4. Добавление Authentication Key в GitHub
Выполняется в настройках профиля GitHub. Обратить вниимание на тип ключа.
5. Проверка SSH подключения
ssh -T git@github.comРисунок 2. Проверка SSH подключения
6. Fork репозитория
Создаем личную копию чужого репозитория, в которую в последствии можем вносить изменения без влияния на первоначальный репозиторий.
Также добавляем upstream для получения актуальных изменений из оригинального репозитория.
Проверяем upstream командой
git remote -vРисунок 3. Проверка upstream
7. Запуск QuickNotes
Затем запускаем сервер QuickNotes.
В другом терминале проверяем работоспособность.
Рисунок 4. Проверка работы сервера
8. Настройка подписи коммитов
Через консоль прописываем настройки коммитов, делаем так, чтобы !!!
9. Добавление Signing Key в GitHub
Аналогично первому ключу, добавляем новый ключ в настройках профиля на GitHub.
10. Создание ветки и подписанного коммита
Делаем коммит ранее созданного файла, при чем коммит будетт подписан.
Проверяем подпись:
git log --show-signature -1Рисунок 5. Подписанный коммит
11. Отправка в GitHub
git push -u origin feature/lab1На GitHub появляется пометка проверенного комита:
Рисунок 6. Проверенный коммит на GitHub
Почему подписанные коммиты важны
Task 2. Создание Pull Request
Новый PR заполняется в соответствии с шаблоном.
Рисунок 7. Заполнение шаблона
Ссылка: kicchhi#1
Task 3. Работа в сообществе GitHub
Я не уверена, нужны ли здесь скриншоты, но все же оставлю.
Screenshots
Бонусное задание
Рисунок 8. Дополнительная защита
Попытка отправить неподписанный коммит завершается ошибкой:
Рисунок 9. Ошибка отправки без подписи