<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suusanex</author_name>
  <author_url>https://blog.hatena.ne.jp/suusanex/</author_url>
  <blog_title>新しもの好きプログラマの耳より情報ブログ</blog_title>
  <blog_url>https://suusanex.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>解決したい問題 Azure Pipelineのスクリプト内でgit submoduleコマンドを使おうとすると、認証が通らずに失敗する。 submoduleのURL自体にトークンを入れておけば通るが、リポジトリ自体にトークンを入れてしまうと変更時などに困るし、できればパイプライン側からトークンを与えたい。 解決方法 次のように-cオプションを使うことで、実行時にトークンを与えることが出来た。 git -c http.extraheader=&quot;AUTHORIZATION: bearer ＜トークン文字列＞&quot; submodule ・・・ 応用 Azure Pipelinesの場合、同一のグループ内…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuusanex.hatenablog.jp%2Fentry%2F2021%2F07%2F09%2F225527&quot; title=&quot;git submoduleコマンドに、実行時に認証トークンを与える方法（Azure DevOpsで実験） - 新しもの好きプログラマの耳より情報ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-09 22:55:27</published>
  <title>git submoduleコマンドに、実行時に認証トークンを与える方法（Azure DevOpsで実験）</title>
  <type>rich</type>
  <url>https://suusanex.hatenablog.jp/entry/2021/07/09/225527</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
