-
Notifications
You must be signed in to change notification settings - Fork 59.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into flatten-skip-duplicate-jobs
- Loading branch information
Showing
15 changed files
with
99 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ The Artifacts API allows you to download, delete, and retrieve information about | |
{% if operation.subcategory == 'artifacts' %}{% include rest_operation %}{% endif %} | ||
{% endfor %} | ||
|
||
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %} | ||
## Permissions | ||
|
||
The Permissions API allows you to set permissions for what organizations and repositories are allowed to run {% data variables.product.prodname_actions %}, and what actions are allowed to run. For more information, see "[Usage limits, billing, and administration](/actions/reference/usage-limits-billing-and-administration#disabling-or-limiting-github-actions-for-your-repository-or-organization)." | ||
|
@@ -33,6 +34,7 @@ You can also set permissions for an enterprise. For more information, see the "[ | |
{% for operation in currentRestOperations %} | ||
{% if operation.subcategory == 'permissions' %}{% include rest_operation %}{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
## Secrets | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
If you choose the option to **Allow specific actions**, there are additional options that you can configure. For more information, see "[Allowing specific actions to run](#allowing-specific-actions-to-run)." | ||
If you choose **Allow select actions**, local actions are allowed, and there are additional options for allowing other specific actions. For more information, see "[Allowing specific actions to run](#allowing-specific-actions-to-run)." | ||
|
||
When you allow local actions only, the policy blocks all access to actions authored by {% data variables.product.prodname_dotcom %}. For example, the [`actions/checkout`](https://github.com/actions/checkout) would not be accessible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
When you enable local actions only, workflows can only run actions located in your repository or organization. | ||
When you enable local actions only, workflows can only run actions located in your repository, organization, or enterprise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/usr/bin/env node | ||
|
||
const fs = require('fs') | ||
const mkdirp = require('mkdirp').sync | ||
const path = require('path') | ||
const program = require('commander') | ||
const allVersions = require('../lib/all-versions') | ||
|
||
// [start-readme] | ||
// | ||
// This script creates new static webhook payload files for a new version. | ||
// | ||
// [end-readme] | ||
|
||
program | ||
.description('Create new payload files in lib/webhooks/static/<new_version> based on an existing version.') | ||
.option('-n, --newVersion <version>', 'The version to copy the payloads to. Must be in <plan@release> format.') | ||
.option('-o, --oldVersion <version>', 'The version to copy the payloads from. Must be in <plan@release> format.') | ||
.parse(process.argv) | ||
|
||
if (!(program.newVersion && program.oldVersion)) { | ||
console.log('Error! You must provide --newVersion and --oldVersion.') | ||
process.exit(1) | ||
} | ||
|
||
if (!(Object.keys(allVersions).includes(program.newVersion) && Object.keys(allVersions).includes(program.oldVersion))) { | ||
console.log('Error! You must provide the full name of a supported version, e.g., [email protected].') | ||
process.exit(1) | ||
} | ||
|
||
const newVersionDirName = allVersions[program.newVersion].miscVersionName | ||
const oldVersionDirName = allVersions[program.oldVersion].miscVersionName | ||
|
||
const payloadsDir = 'lib/webhooks/static' | ||
const srcDir = path.join(payloadsDir, oldVersionDirName) | ||
const destDir = path.join(payloadsDir, newVersionDirName) | ||
|
||
// create the new directory | ||
mkdirp(destDir) | ||
|
||
// copy the files | ||
fs.readdirSync(srcDir).forEach(file => { | ||
const srcFile = path.join(srcDir, file) | ||
const destFile = path.join(destDir, file) | ||
fs.copyFileSync(srcFile, destFile) | ||
}) | ||
|
||
// check that it worked | ||
if (!fs.existsSync(destDir)) { | ||
console.log(`Error! A new directory was not successfully created at ${destDir}.`) | ||
process.exit(1) | ||
} | ||
|
||
if (!fs.readdirSync(destDir).length) { | ||
console.log(`Error! The directory created at ${destDir} is empty.`) | ||
process.exit(1) | ||
} | ||
|
||
// print success message | ||
console.log(`Done! Copied ${srcDir} to ${destDir}.`) |