|
1901 | 1901 | }
|
1902 | 1902 | ]
|
1903 | 1903 | },
|
| 1904 | + { |
| 1905 | + "verb": "get", |
| 1906 | + "requestPath": "/repos/{owner}/{repo}/actions/permissions/access", |
| 1907 | + "parameters": [ |
| 1908 | + { |
| 1909 | + "name": "owner", |
| 1910 | + "in": "path", |
| 1911 | + "required": true, |
| 1912 | + "schema": { |
| 1913 | + "type": "string" |
| 1914 | + }, |
| 1915 | + "descriptionHTML": "" |
| 1916 | + }, |
| 1917 | + { |
| 1918 | + "name": "repo", |
| 1919 | + "in": "path", |
| 1920 | + "required": true, |
| 1921 | + "schema": { |
| 1922 | + "type": "string" |
| 1923 | + }, |
| 1924 | + "descriptionHTML": "" |
| 1925 | + } |
| 1926 | + ], |
| 1927 | + "x-codeSamples": [ |
| 1928 | + { |
| 1929 | + "lang": "Shell", |
| 1930 | + "sourceHTML": "<pre><code class=\"hljs language-shell\">curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/actions/permissions/access</code></pre>" |
| 1931 | + }, |
| 1932 | + { |
| 1933 | + "lang": "JavaScript", |
| 1934 | + "sourceHTML": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'GET /repos/{owner}/{repo}/actions/permissions/access'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>\n})\n</code></pre>" |
| 1935 | + } |
| 1936 | + ], |
| 1937 | + "summary": "Get the level of access for workflows outside of the repository", |
| 1938 | + "x-github": { |
| 1939 | + "enabledForGitHubApps": true, |
| 1940 | + "previews": [], |
| 1941 | + "category": "actions", |
| 1942 | + "subcategory": "permissions" |
| 1943 | + }, |
| 1944 | + "slug": "get-the-level-of-access-for-workflows-outside-of-the-repository", |
| 1945 | + "category": "actions", |
| 1946 | + "subcategory": "permissions", |
| 1947 | + "notes": [], |
| 1948 | + "bodyParameters": [], |
| 1949 | + "descriptionHTML": "<p>Gets the level of access that workflows outside of the repository have to actions and workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"<a href=\"https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository\">Managing GitHub Actions settings for a repository</a>.\"</p>\n<p>You must authenticate using an access token with the <code>repo</code> scope to use this endpoint. GitHub Apps must have the\nrepository <code>administration</code> permission to use this endpoint.</p>", |
| 1950 | + "responses": [ |
| 1951 | + { |
| 1952 | + "httpStatusCode": "200", |
| 1953 | + "httpStatusMessage": "OK", |
| 1954 | + "description": "<p>Response</p>", |
| 1955 | + "payload": "<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n <span class=\"hljs-attr\">\"access_level\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"organization\"</span>\n<span class=\"hljs-punctuation\">}</span>\n</code></pre>" |
| 1956 | + } |
| 1957 | + ] |
| 1958 | + }, |
| 1959 | + { |
| 1960 | + "verb": "put", |
| 1961 | + "requestPath": "/repos/{owner}/{repo}/actions/permissions/access", |
| 1962 | + "parameters": [ |
| 1963 | + { |
| 1964 | + "name": "owner", |
| 1965 | + "in": "path", |
| 1966 | + "required": true, |
| 1967 | + "schema": { |
| 1968 | + "type": "string" |
| 1969 | + }, |
| 1970 | + "descriptionHTML": "" |
| 1971 | + }, |
| 1972 | + { |
| 1973 | + "name": "repo", |
| 1974 | + "in": "path", |
| 1975 | + "required": true, |
| 1976 | + "schema": { |
| 1977 | + "type": "string" |
| 1978 | + }, |
| 1979 | + "descriptionHTML": "" |
| 1980 | + } |
| 1981 | + ], |
| 1982 | + "x-codeSamples": [ |
| 1983 | + { |
| 1984 | + "lang": "Shell", |
| 1985 | + "sourceHTML": "<pre><code class=\"hljs language-shell\">curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/actions/permissions/access \\\n -d '{\"access_level\":\"access_level\"}'</code></pre>" |
| 1986 | + }, |
| 1987 | + { |
| 1988 | + "lang": "JavaScript", |
| 1989 | + "sourceHTML": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'PUT /repos/{owner}/{repo}/actions/permissions/access'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">access_level</span>: <span class=\"hljs-string\">'access_level'</span>\n})\n</code></pre>" |
| 1990 | + } |
| 1991 | + ], |
| 1992 | + "summary": "Set the level of access for workflows outside of the repository", |
| 1993 | + "requestBody": { |
| 1994 | + "required": true, |
| 1995 | + "content": { |
| 1996 | + "application/json": { |
| 1997 | + "schema": { |
| 1998 | + "type": "object", |
| 1999 | + "properties": { |
| 2000 | + "access_level": { |
| 2001 | + "type": "string", |
| 2002 | + "description": "<p><strong>Required</strong>. Defines the level of access that workflows outside of the repository have to actions and workflows within the\nrepository. <code>none</code> means access is only possible from workflows in this repository. Can be one of <code>none</code>, <code>organization</code>, <code>enterprise</code>.</p>", |
| 2003 | + "enum": [ |
| 2004 | + "none", |
| 2005 | + "organization", |
| 2006 | + "enterprise" |
| 2007 | + ], |
| 2008 | + "name": "access_level", |
| 2009 | + "in": "body", |
| 2010 | + "rawType": "string", |
| 2011 | + "rawDescription": "Defines the level of access that workflows outside of the repository have to actions and workflows within the\nrepository. `none` means access is only possible from workflows in this repository. Can be one of `none`, `organization`, `enterprise`.", |
| 2012 | + "childParamsGroups": [] |
| 2013 | + } |
| 2014 | + }, |
| 2015 | + "required": [ |
| 2016 | + "access_level" |
| 2017 | + ] |
| 2018 | + }, |
| 2019 | + "examples": { |
| 2020 | + "default": { |
| 2021 | + "value": { |
| 2022 | + "access_level": "organization" |
| 2023 | + } |
| 2024 | + } |
| 2025 | + } |
| 2026 | + } |
| 2027 | + } |
| 2028 | + }, |
| 2029 | + "x-github": { |
| 2030 | + "enabledForGitHubApps": true, |
| 2031 | + "previews": [], |
| 2032 | + "category": "actions", |
| 2033 | + "subcategory": "permissions" |
| 2034 | + }, |
| 2035 | + "slug": "set-the-level-of-access-for-workflows-outside-of-the-repository", |
| 2036 | + "category": "actions", |
| 2037 | + "subcategory": "permissions", |
| 2038 | + "notes": [], |
| 2039 | + "descriptionHTML": "<p>Sets the level of access that workflows outside of the repository have to actions and workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"<a href=\"https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository\">Managing GitHub Actions settings for a repository</a>.\"</p>\n<p>You must authenticate using an access token with the <code>repo</code> scope to use this endpoint. GitHub Apps must have the\nrepository <code>administration</code> permission to use this endpoint.</p>", |
| 2040 | + "responses": [ |
| 2041 | + { |
| 2042 | + "httpStatusCode": "204", |
| 2043 | + "httpStatusMessage": "No Content", |
| 2044 | + "description": "<p>Response</p>" |
| 2045 | + } |
| 2046 | + ], |
| 2047 | + "bodyParameters": [ |
| 2048 | + { |
| 2049 | + "type": "string", |
| 2050 | + "description": "<p><strong>Required</strong>. Defines the level of access that workflows outside of the repository have to actions and workflows within the\nrepository. <code>none</code> means access is only possible from workflows in this repository. Can be one of <code>none</code>, <code>organization</code>, <code>enterprise</code>.</p>", |
| 2051 | + "enum": [ |
| 2052 | + "none", |
| 2053 | + "organization", |
| 2054 | + "enterprise" |
| 2055 | + ], |
| 2056 | + "name": "access_level", |
| 2057 | + "in": "body", |
| 2058 | + "rawType": "string", |
| 2059 | + "rawDescription": "Defines the level of access that workflows outside of the repository have to actions and workflows within the\nrepository. `none` means access is only possible from workflows in this repository. Can be one of `none`, `organization`, `enterprise`.", |
| 2060 | + "childParamsGroups": [] |
| 2061 | + } |
| 2062 | + ] |
| 2063 | + }, |
1904 | 2064 | {
|
1905 | 2065 | "verb": "get",
|
1906 | 2066 | "requestPath": "/repos/{owner}/{repo}/actions/permissions/selected-actions",
|
|
0 commit comments